We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a0b2be commit b154468Copy full SHA for b154468
1 file changed
tests/basics/string_format_modulo_int.py
@@ -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