mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Correctly format '%c' when given a width. #2199
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
module string_test;
|
||||
|
||||
fn void test_format() @test
|
||||
{
|
||||
test::eq(string::tformat("_%*c_", 5, 'x'), "_ x_");
|
||||
test::eq(string::tformat("_%-*c_", 5, 'x'), "_x _");
|
||||
}
|
||||
fn void test_clear() @test
|
||||
{
|
||||
DString s = dstring::new_with_capacity(mem, 32);
|
||||
|
||||
Reference in New Issue
Block a user