aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd/tests/src/format.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-04-13 16:18:00 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-04-13 16:18:00 +0200
commit3795115641bf5c1d1a3d60313408ba462057ba18 (patch)
tree8dd4baafe46561d64fd72ae086ebc2ddaa719816 /libs/kstd/tests/src/format.cpp
parentcd1dd2037cbe1d5f1362202d3127640406b468b8 (diff)
downloadteachos-3795115641bf5c1d1a3d60313408ba462057ba18.tar.xz
teachos-3795115641bf5c1d1a3d60313408ba462057ba18.zip
kstd/format: add support for char formatting
Diffstat (limited to 'libs/kstd/tests/src/format.cpp')
-rw-r--r--libs/kstd/tests/src/format.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/kstd/tests/src/format.cpp b/libs/kstd/tests/src/format.cpp
index 4915e50..73c8102 100644
--- a/libs/kstd/tests/src/format.cpp
+++ b/libs/kstd/tests/src/format.cpp
@@ -40,21 +40,21 @@ SCENARIO("Formatting to a new string", "[format]")
WHEN("calling format with the same number of arguments as there are placeholders")
{
- auto result = kstd::format(fmt, 1, true, -100);
+ auto result = kstd::format(fmt, 1, true, 'a');
THEN("the result is the formatted string")
{
- REQUIRE(result == "Here are some placeholders: 1 true -100");
+ REQUIRE(result == "Here are some placeholders: 1 true a");
}
}
WHEN("calling format with too many arguments")
{
- auto result = kstd::format(fmt, 2, false, -200, 4, 5, 6);
+ auto result = kstd::format(fmt, 2, false, 'b', 4, 5, 6);
THEN("the result is the formatted string")
{
- REQUIRE(result == "Here are some placeholders: 2 false -200");
+ REQUIRE(result == "Here are some placeholders: 2 false b");
}
}
}