aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_suite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_suite.cpp')
-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 99e07b7..45f1abe 100644
--- a/test/test_suite.cpp
+++ b/test/test_suite.cpp
@@ -934,6 +934,12 @@ TEST_CASE("length", "[]" ) {
test::sprintf(buffer, "%20.X", 0U);
REQUIRE(!strcmp(buffer, " "));
+
+ test::sprintf(buffer, "%02.0u", 0U);
+ REQUIRE(!strcmp(buffer, " "));
+
+ test::sprintf(buffer, "%02.0d", 0);
+ REQUIRE(!strcmp(buffer, " "));
}