Skip to content

Commit b154468

Browse files
committed
tests/basics: Add test for string module formatting with int argument.
1 parent 3a0b2be commit b154468

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# test string modulo formatting with int values
2+
3+
# test + option with various amount of padding
4+
for pad in ('', ' ', '0'):
5+
for n in (1, 2, 3):
6+
for val in (-1, 0, 1):
7+
print(('%+' + pad + str(n) + 'd') % val)

0 commit comments

Comments
 (0)