Commit b154468b authored by Damien George's avatar Damien George
Browse files

tests/basics: Add test for string module formatting with int argument.

parent 3a0b2be6
# 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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment