| 12 | #include "gtest/gtest.h" |
| 13 | |
| 14 | TEST(args_test, basic) { |
| 15 | fmt::dynamic_format_arg_store<fmt::format_context> store; |
| 16 | store.push_back(42); |
| 17 | store.push_back("abc1"); |
| 18 | store.push_back(1.5f); |
| 19 | EXPECT_EQ("42 and abc1 and 1.5", fmt::vformat("{} and {} and {}", store)); |
| 20 | } |
| 21 | |
| 22 | TEST(args_test, strings_and_refs) { |
| 23 | // Unfortunately the tests are compiled with old ABI so strings use COW. |
nothing calls this directly
no test coverage detected