Covered more translation possibilities

This commit is contained in:
Martin Hořeňovský
2018-02-15 19:58:49 +01:00
parent c8d765a575
commit f988b4eb35
6 changed files with 86 additions and 9 deletions

View File

@@ -738,6 +738,16 @@ with expansion:
}
"
-------------------------------------------------------------------------------
Thrown string literals are translated
-------------------------------------------------------------------------------
Exception.tests.cpp:<line number>
...............................................................................
Exception.tests.cpp:<line number>: FAILED:
due to unexpected exception with message:
For some reason someone is throwing a string literal!
-------------------------------------------------------------------------------
Unexpected exceptions can be translated
-------------------------------------------------------------------------------
@@ -1063,7 +1073,17 @@ Tricky.tests.cpp:<line number>: FAILED:
with expansion:
"first" == "second"
===============================================================================
test cases: 200 | 149 passed | 47 failed | 4 failed as expected
assertions: 1005 | 879 passed | 105 failed | 21 failed as expected
-------------------------------------------------------------------------------
thrown std::strings are translated
-------------------------------------------------------------------------------
Exception.tests.cpp:<line number>
...............................................................................
Exception.tests.cpp:<line number>: FAILED:
due to unexpected exception with message:
Why would you throw a std::string?
===============================================================================
test cases: 202 | 149 passed | 49 failed | 4 failed as expected
assertions: 1007 | 879 passed | 107 failed | 21 failed as expected