More assertion tests.
This commit is contained in:
1 parent
61d5ebc0af
commit
62394e0ebd
2 files changed
+52
-3
No files matched your search
+3
-2
@@ -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; \
|
||||
|
||||
Reference in new issue
Block a user