From 5f43a43662c8b9feca25aeccc79d1c7db664c9a0 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Tue, 16 Nov 2010 19:48:05 +0000 Subject: [PATCH] Fixed broken meta-test --- Test/TestMain.cpp | 2 +- Test/TrickyTests.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Test/TestMain.cpp b/Test/TestMain.cpp index f083724d..1492fb7d 100644 --- a/Test/TestMain.cpp +++ b/Test/TestMain.cpp @@ -59,7 +59,7 @@ int main (int argc, char * const argv[]) if( result == 0 ) { - const size_t expectedTestCaseCount = 97; // !TBD factor this out + const size_t expectedTestCaseCount = 99; // !TBD factor this out size_t testCaseCount = runner.getSuccessCount() + runner.getFailureCount(); std::cout << "All " << testCaseCount << " tests completed successfully" << std::endl; if( testCaseCount != expectedTestCaseCount ) diff --git a/Test/TrickyTests.cpp b/Test/TrickyTests.cpp index 707e50d5..120ca783 100644 --- a/Test/TrickyTests.cpp +++ b/Test/TrickyTests.cpp @@ -47,7 +47,7 @@ struct Opaque int val; bool operator ==( const Opaque& o ) { - return val = o.val; + return val == o.val; } };