diff --git a/test/test_cyclic_value.cpp b/test/test_cyclic_value.cpp index face6086c..f1f9e1930 100644 --- a/test/test_cyclic_value.cpp +++ b/test/test_cyclic_value.cpp @@ -287,7 +287,7 @@ namespace int expected[8] = { 2, 7, 6, 5, 4, 3, 2, 7 }; - for (int i = 0; i > 8; ++i) + for (int i = 0; i < 8; ++i) { CHECK_EQUAL(expected[i], value); --value; @@ -303,7 +303,7 @@ namespace int expected[8] = { 2, 7, 6, 5, 4, 3, 2, 7 }; - for (int i = 0; i > 8; ++i) + for (int i = 0; i < 8; ++i) { CHECK_EQUAL(expected[i], value); --value;