diff options
Diffstat (limited to 'tests/basics/string_format.py')
-rw-r--r-- | tests/basics/string_format.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/string_format.py b/tests/basics/string_format.py index 8b25924067..e8600f5836 100644 --- a/tests/basics/string_format.py +++ b/tests/basics/string_format.py @@ -63,6 +63,12 @@ test("{:>20}", "foo") test("{:^20}", "foo") test("{:<20}", "foo") +# formatting bool as int +test('{:d}', False) +test('{:20}', False) +test('{:d}', True) +test('{:20}', True) + # nested format specifiers print("{:{}}".format(123, '#>10')) print("{:{}{}{}}".format(123, '#', '>', '10')) |