Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
# 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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment