diff options
author | Hodlinator <172445034+hodlinator@users.noreply.github.com> | 2024-12-05 14:50:06 +0100 |
---|---|---|
committer | Hodlinator <172445034+hodlinator@users.noreply.github.com> | 2024-12-06 21:56:17 +0100 |
commit | c93bf0e6e2cd0e9dc979ed996e41cc1034bc1ad1 (patch) | |
tree | 4bd73df555db14a3539831d6a7c47e01b9c3a3df /src | |
parent | 76cca4aa6fcd363dee821c837b1b627ea137b7a4 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/test/util_string_tests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/util_string_tests.cpp b/src/test/util_string_tests.cpp index e40bef6379..340c650fe3 100644 --- a/src/test/util_string_tests.cpp +++ b/src/test/util_string_tests.cpp @@ -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"); |