aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/test_suite.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_suite.cpp b/test/test_suite.cpp
index 2103a5b..e3630d7 100644
--- a/test/test_suite.cpp
+++ b/test/test_suite.cpp
@@ -1,6 +1,6 @@
///////////////////////////////////////////////////////////////////////////////
// \author (c) Marco Paland (info@paland.com)
-// 2017-2018, PALANDesign Hannover, Germany
+// 2017-2019, PALANDesign Hannover, Germany
//
// \license The MIT License (MIT)
//
@@ -354,6 +354,10 @@ TEST_CASE("# flag", "[]" ) {
test::sprintf(buffer, "%#.0x", 0);
REQUIRE(!strcmp(buffer, ""));
+ test::sprintf(buffer, "%#.1x", 0);
+ REQUIRE(!strcmp(buffer, "0"));
+ test::sprintf(buffer, "%#.0llx", (long long)0);
+ REQUIRE(!strcmp(buffer, ""));
test::sprintf(buffer, "%#.8x", 0x614e);
REQUIRE(!strcmp(buffer, "0x0000614e"));
test::sprintf(buffer,"%#b", 6);