diff --git a/tests/libluna/TestFormat.cpp b/tests/libluna/TestFormat.cpp index 955d342c..587c87f3 100644 --- a/tests/libluna/TestFormat.cpp +++ b/tests/libluna/TestFormat.cpp @@ -280,6 +280,15 @@ TestResult test_verbatim_percent_format() test_success; } +TestResult test_format_character() +{ + auto fmt = TRY(String::format("exampl%c"_sv, 'e')); + + validate(fmt.view() == "example"); + + test_success; +} + Result test_main() { test_prelude; @@ -315,6 +324,7 @@ Result test_main() run_test(test_negative_va_width); run_test(test_negative_va_precision); run_test(test_verbatim_percent_format); + run_test(test_format_character); return {}; }