1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 14:47:34 +00:00

IRCClient: Use new format functions.

This commit is contained in:
asynts 2020-10-06 14:16:35 +02:00 committed by Andreas Kling
parent d2ca7ca017
commit da9c995a8c
7 changed files with 35 additions and 29 deletions

View file

@ -188,4 +188,10 @@ TEST_CASE(format_string_literal_as_pointer)
EXPECT_EQ(String::formatted("{:p}", literal), String::formatted("{:p}", reinterpret_cast<FlatPtr>(literal)));
}
TEST_CASE(format_character)
{
char a = 'a';
EXPECT_EQ(String::formatted("{}", true ? a : 'b'), "a");
}
TEST_MAIN(Format)