Add another test for #fmt conversion widths

This commit is contained in:
Brian Anderson 2011-04-16 18:22:14 -04:00
parent dcfdb02fab
commit f7b68e9edd

View file

@ -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");