Ensure platform-independent output from SpecialException::what

This commit is contained in:
Martin Hořeňovský
2018-05-12 20:37:13 +02:00
parent 6c5c4c43a0
commit e5fe3e877a
6 changed files with 20 additions and 16 deletions

View File

@@ -1750,12 +1750,12 @@ Matchers.tests.cpp:<line number>
Matchers.tests.cpp:<line number>: FAILED:
CHECK_THROWS_MATCHES( throws(3), SpecialException, ExceptionMatcher{1} )
with expansion:
std::exception special exception has value of 1
SpecialException::what special exception has value of 1
Matchers.tests.cpp:<line number>: FAILED:
REQUIRE_THROWS_MATCHES( throws(4), SpecialException, ExceptionMatcher{1} )
with expansion:
std::exception special exception has value of 1
SpecialException::what special exception has value of 1
-------------------------------------------------------------------------------
Exception matchers that succeed
@@ -1767,13 +1767,13 @@ Matchers.tests.cpp:<line number>:
PASSED:
CHECK_THROWS_MATCHES( throws(1), SpecialException, ExceptionMatcher{1} )
with expansion:
std::exception special exception has value of 1
SpecialException::what special exception has value of 1
Matchers.tests.cpp:<line number>:
PASSED:
REQUIRE_THROWS_MATCHES( throws(2), SpecialException, ExceptionMatcher{2} )
with expansion:
std::exception special exception has value of 2
SpecialException::what special exception has value of 2
-------------------------------------------------------------------------------
Exception messages can be tested for