~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to tests/cpp_unit/API/APIExceptionsTest.cc

  • Committer: Chris Rogers
  • Date: 2014-04-16 11:48:45 UTC
  • mfrom: (707 merge)
  • mto: This revision was merged to the branch mainline in revision 711.
  • Revision ID: chris.rogers@stfc.ac.uk-20140416114845-h3u3q7pdcxkxvovs
Update to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
    UnhandledException ue("MyClass");
53
53
 
54
54
    std::string ret = "An unhandled exception was thrown by 'MyClass'"\
55
 
      " which was not of type 'Squeal' or deriving from 'std::exception'";
 
55
      " which was not of type 'Exception' or deriving from 'std::exception'";
56
56
 
57
57
    ASSERT_FALSE(strcmp(ret.c_str(), ue._what()))
58
58
      << "Fail: _what() failed, didn't return the expected string"