From cf646a9d892f5386c79e5d542fb8479c64284868 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 6 Dec 2024 17:50:15 +0000 Subject: [PATCH] Fixed incorrect for loops in unit tests --- test/test_cyclic_value.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;