Skip to content

Commit

Permalink
Fixed incorrect for loops in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jwellbelove committed Dec 19, 2024
1 parent 86083e1 commit cf646a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_cyclic_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit cf646a9

Please sign in to comment.