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:
parent
d2ca7ca017
commit
da9c995a8c
7 changed files with 35 additions and 29 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue