| 258 | } |
| 259 | |
| 260 | static doctest::String intTranslator(int ex) { |
| 261 | return doctest::String("int: ") + doctest::toString(ex); |
| 262 | } |
| 263 | |
| 264 | TEST_CASE("a test case that registers an exception translator for int and then throws one") { |
| 265 | // set an exception translator for int - note that this shouldn't be done in a test case but |