summaryrefslogtreecommitdiff
path: root/AK/Tests
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2020-10-06 14:16:35 +0200
committerAndreas Kling <kling@serenityos.org>2020-10-06 15:28:39 +0200
commitda9c995a8c634daa8f291740e840e876cc506339 (patch)
tree261e098d4c729455be6f37ed54e9dca6f316db2f /AK/Tests
parentd2ca7ca017a1d5e3b524ceccf9dbbf4e826fbef5 (diff)
downloadserenity-da9c995a8c634daa8f291740e840e876cc506339.zip
IRCClient: Use new format functions.
Diffstat (limited to 'AK/Tests')
-rw-r--r--AK/Tests/TestFormat.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/AK/Tests/TestFormat.cpp b/AK/Tests/TestFormat.cpp
index 7df8430b5e..8e29659bef 100644
--- a/AK/Tests/TestFormat.cpp
+++ b/AK/Tests/TestFormat.cpp
@@ -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)