Add another test for #fmt conversion widths
This commit is contained in:
parent
dcfdb02fab
commit
f7b68e9edd
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ fn main() {
|
|||
test(#fmt("%t", 0xffffffff_u), "11111111111111111111111111111111");
|
||||
|
||||
// Widths
|
||||
test(#fmt("%1d", 500), "500");
|
||||
test(#fmt("%10d", 500), " 500");
|
||||
test(#fmt("%10d", -500), " -500");
|
||||
test(#fmt("%10u", 500u), " 500");
|
||||
|
|
Loading…
Reference in a new issue