tests: Test character formatting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-05-13 12:50:10 +02:00
parent e481ce45d0
commit dc7e503342
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -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<void> test_main()
{
test_prelude;
@ -315,6 +324,7 @@ Result<void> 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 {};
}