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.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_suite.cpp b/test/test_suite.cpp
index 45f1abe..272f4c4 100644
--- a/test/test_suite.cpp
+++ b/test/test_suite.cpp
@@ -352,6 +352,10 @@ TEST_CASE("# flag", "[]" ) {
test::sprintf(buffer, "%#.0x", 0);
REQUIRE(!strcmp(buffer, ""));
+ test::sprintf(buffer, "%#.8x", 0x614e);
+ REQUIRE(!strcmp(buffer, "0x0000614e"));
+ test::sprintf(buffer,"%#b", 6);
+ REQUIRE(!strcmp(buffer, "0b110"));
}