Skip to content

Commit c93bf0e

Browse files
hodlinatorl0rinc
andcommitted
test: Add missing %c character test
Proves tinyformat doesn't trigger an exception for \0 characters. Co-Authored-By: Lőrinc <pap.lorinc@gmail.com>
1 parent 76cca4a commit c93bf0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/util_string_tests.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ BOOST_AUTO_TEST_CASE(ConstevalFormatString_NumSpec)
4545
PassFmt<0>("");
4646
PassFmt<0>("%%");
4747
PassFmt<1>("%s");
48+
PassFmt<1>("%c");
4849
PassFmt<0>("%%s");
4950
PassFmt<0>("s%%");
5051
PassFmt<1>("%%%s");

0 commit comments

Comments
 (0)