Skip to content

Commit

Permalink
test(test_suite): add more #-flag test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mpaland committed Jan 31, 2019
1 parent 8f302bf commit e9375ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_suite.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
///////////////////////////////////////////////////////////////////////////////
// \author (c) Marco Paland ([email protected])
// 2017-2018, PALANDesign Hannover, Germany
// 2017-2019, PALANDesign Hannover, Germany
//
// \license The MIT License (MIT)
//
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e9375ed

Please sign in to comment.