/[projet1]/public/pc/shared_libraries/unittestcpp/v1.4/src/Checks.h
Defence Force logotype

Diff of /public/pc/shared_libraries/unittestcpp/v1.4/src/Checks.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 171 by dbug, Mon Jul 13 12:20:10 2009 UTC revision 172 by dbug, Sat Nov 28 13:10:37 2009 UTC
# Line 21  void CheckEqual(TestResults& results, Ex Line 21  void CheckEqual(TestResults& results, Ex
21      if (!(expected == actual))      if (!(expected == actual))
22      {      {
23          UnitTest::MemoryOutStream stream;          UnitTest::MemoryOutStream stream;
24          stream << "Expected " << expected << " but was " << actual;          stream << "Expected ";
25                    stream << expected;
26                    stream << " but was ";
27                    stream << actual;
28    
29          results.OnTestFailure(details, stream.GetText());          results.OnTestFailure(details, stream.GetText());
30      }      }

Legend:
Removed from v.171  
changed lines
  Added in v.172

  ViewVC Help
Powered by ViewVC 1.1.26