Update tests
This commit is contained in:
parent
b089024313
commit
fdfa381896
@ -110,7 +110,7 @@ TEST(args_test, named_arg_by_ref) {
|
||||
EXPECT_EQ(fmt::vformat("{band}", store), "Rolling Scones");
|
||||
}
|
||||
|
||||
TEST(args_test, named_with_unnamed) {
|
||||
TEST(args_test, named_with_automatic_index) {
|
||||
fmt::dynamic_format_arg_store<fmt::format_context> store;
|
||||
store.push_back(1);
|
||||
store.push_back(fmt::arg("a1", 2));
|
||||
@ -119,6 +119,15 @@ TEST(args_test, named_with_unnamed) {
|
||||
EXPECT_EQ("1 2 3 4", fmt::vformat("{} {a1} {a2} {}", store));
|
||||
}
|
||||
|
||||
TEST(args_test, named_with_manual_index) {
|
||||
fmt::dynamic_format_arg_store<fmt::format_context> store;
|
||||
store.push_back(1);
|
||||
store.push_back(fmt::arg("a1", 2));
|
||||
store.push_back(fmt::arg("a2", 3));
|
||||
store.push_back(4);
|
||||
EXPECT_EQ("1 2 3 4 1", fmt::vformat("{0} {a1} {a2} {3} {0}", store));
|
||||
}
|
||||
|
||||
TEST(args_test, named_custom_format) {
|
||||
fmt::dynamic_format_arg_store<fmt::format_context> store;
|
||||
auto c = custom_type();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user