aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_suite.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_suite.cpp b/test/test_suite.cpp
index 0a51e09..a8de789 100644
--- a/test/test_suite.cpp
+++ b/test/test_suite.cpp
@@ -817,6 +817,12 @@ TEST_CASE("length", "[]" ) {
test::sprintf(buffer, "%20.x", 305441741);
REQUIRE(!strcmp(buffer, " 1234abcd"));
+ test::sprintf(buffer, "%50.x", 305441741);
+ REQUIRE(!strcmp(buffer, " 1234abcd"));
+
+ test::sprintf(buffer, "%50.x%10.u", 305441741, 12345);
+ REQUIRE(!strcmp(buffer, " 1234abcd 12345"));
+
test::sprintf(buffer, "%20.0x", 3989525555U);
REQUIRE(!strcmp(buffer, " edcb5433"));