You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
tests/basics: Add test for string module formatting with int argument.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# test string modulo formatting with int values
|
||||
|
||||
# test + option with various amount of padding
|
||||
for pad in ('', ' ', '0'):
|
||||
for n in (1, 2, 3):
|
||||
for val in (-1, 0, 1):
|
||||
print(('%+' + pad + str(n) + 'd') % val)
|
||||
Reference in New Issue
Block a user