1
0
Fork 0

test(test_suite): add more #-flag test cases

development
Marco Paland 6 years ago
parent 8f302bfc4b
commit e9375ed897

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

Loading…
Cancel
Save