| 350 | } |
| 351 | |
| 352 | template <typename Catch> void exception_test() { |
| 353 | try { |
| 354 | throw std::runtime_error("Test Exception"); |
| 355 | } catch (const Catch& ex) { |
| 356 | EXPECT_EQ("Test Exception", fmt::format("{}", ex)); |
| 357 | EXPECT_EQ("std::runtime_error: Test Exception", fmt::format("{:t}", ex)); |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | namespace my_ns1 { |
| 362 | namespace my_ns2 { |