Skip to content

Commit 9fd7b22

Browse files
committed
Merge pull request #98 from paxos1977/dev/FixingIncorrectUnitTest
Fixing a unit test that's exercising the wrong case
2 parents 983a990 + 1c30bcd commit 9fd7b22

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/TestRequireMacros.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -646,14 +646,9 @@ namespace {
646646
UnitTest::TestResults testResults;
647647
ScopedCurrentTest scopedResults(testResults);
648648

649-
const float data[] = { 0, 1, 2, 3 };
649+
const float data[] = { 1, 2, 3, 4 };
650650

651-
try
652-
{
653-
REQUIRE CHECK_ARRAY_CLOSE (data, FunctionWithSideEffects2(), 4, 0.01f);
654-
}
655-
catch (const UnitTest::RequiredCheckException&)
656-
{}
651+
REQUIRE CHECK_ARRAY_CLOSE (data, FunctionWithSideEffects2(), 4, 0.01f);
657652
}
658653
CHECK_EQUAL(1, g_sideEffect);
659654
}

0 commit comments

Comments
 (0)