mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-02 07:01:58 +01:00
Add fmt::bytes
This commit is contained in:
@@ -1766,6 +1766,12 @@ TEST(FormatTest, Dynamic) {
|
||||
EXPECT_EQ("42 and abc1 and 1.5", result);
|
||||
}
|
||||
|
||||
TEST(FormatTest, Bytes) {
|
||||
auto s = fmt::format("{:10}", fmt::bytes("ёжик"));
|
||||
EXPECT_EQ("ёжик ", s);
|
||||
EXPECT_EQ(10, s.size());
|
||||
}
|
||||
|
||||
TEST(FormatTest, JoinArg) {
|
||||
using fmt::join;
|
||||
int v1[3] = {1, 2, 3};
|
||||
|
||||
Reference in New Issue
Block a user