Skip to content

Commit

Permalink
test: Add missing %c character test
Browse files Browse the repository at this point in the history
Proves tinyformat doesn't trigger an exception for \0 characters.

Co-Authored-By: Lőrinc <[email protected]>
  • Loading branch information
hodlinator and l0rinc committed Dec 6, 2024
1 parent 56c0f4f commit 8ee0140
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/util_string_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ BOOST_AUTO_TEST_CASE(ConstevalFormatString_NumSpec)
PassFmt<0>("");
PassFmt<0>("%%");
PassFmt<1>("%s");
PassFmt<1>("%c");
PassFmt<0>("%%s");
PassFmt<0>("s%%");
PassFmt<1>("%%%s");
Expand Down

0 comments on commit 8ee0140

Please sign in to comment.