tests: Test character formatting
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e481ce45d0
commit
dc7e503342
@ -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 {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user