More assertion tests.

This commit is contained in:
Victor Zverovich
2014-05-02 07:07:55 -07:00
parent 61d5ebc0af
commit 62394e0ebd
2 changed files with 52 additions and 3 deletions

View File

@@ -36,9 +36,10 @@
} \
catch (expected_exception const& e) { \
if (expected_message != std::string(e.what())) { \
gtest_ar << "Statement throws an exception with a different message\n" \
gtest_ar \
<< #statement " throws an exception with a different message.\n" \
<< "Expected: " << expected_message << "\n" \
<< " Actual: " << e.what() << "\n"; \
<< " Actual: " << e.what(); \
goto GTEST_CONCAT_TOKEN_(gtest_label_testthrow_, __LINE__); \
} \
gtest_caught_expected = true; \