tests: Add boolean-as-integer formatting tests for fixed regression. · csamuelson/circuitpython@cb4472d · GitHub
Skip to content

Commit cb4472d

Browse files
Jongydpgeorge
authored andcommitted
tests: Add boolean-as-integer formatting tests for fixed regression.
As suggested by @dpgeorge in adafruit#5538.
1 parent 35e664d commit cb4472d

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

tests/basics/string_format.py

Lines changed: 6 additions & 0 deletions

tests/basics/string_format_modulo.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
print("%10s" % 'abc')
4141
print("%-10s" % 'abc')
4242

43+
print('%c' % False)
44+
print('%c' % True)
45+
4346
# Should be able to print dicts; in this case they aren't used
4447
# to lookup keywords in formats like %(foo)s
4548
print('%s' % {})

tests/float/string_format.py

Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)