summaryrefslogtreecommitdiff
path: root/AK/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'AK/Tests')
-rw-r--r--AK/Tests/TestFormat.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/AK/Tests/TestFormat.cpp b/AK/Tests/TestFormat.cpp
index 86227f8e16..898fd49df0 100644
--- a/AK/Tests/TestFormat.cpp
+++ b/AK/Tests/TestFormat.cpp
@@ -119,6 +119,7 @@ TEST_CASE(replacement_field)
EXPECT_EQ(String::formatted("{:*<{1}}", 7, 4), "7***");
EXPECT_EQ(String::formatted("{:{2}}", -5, 8, 16), " -5");
EXPECT_EQ(String::formatted("{{{:*^{1}}}}", 1, 3), "{*1*}");
+ EXPECT_EQ(String::formatted("{:0{}}", 1, 3), "001");
}
TEST_MAIN(Format)