|
|
|
@ -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);
|
|
|
|
|