diff options
Diffstat (limited to 'tests/basics/string-format-modulo.py')
-rw-r--r-- | tests/basics/string-format-modulo.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/basics/string-format-modulo.py b/tests/basics/string-format-modulo.py index c8fdc06f68..f3f57b45ad 100644 --- a/tests/basics/string-format-modulo.py +++ b/tests/basics/string-format-modulo.py @@ -51,8 +51,18 @@ print("%#06x" % 18) print("%*d" % (5, 10)) print("%*.*d" % (2, 2, 20)) -# TODO: Formatted incorrectly -#print("%*.*d" % (5, 8, 20)) +print("%*.*d" % (5, 8, 20)) + +print(">%8.4d<" % -12) +print(">% 8.4d<" % -12) +print(">%+8.4d<" % 12) +print(">%+8.4d<" % -12) +print(">%08.4d<" % -12) +print(">%08.4d<" % 12) +print(">%-8.4d<" % -12) +print(">%-08.4d<" % -12) +print(">%-+08.4d<" % -12) +print(">%-+08.4d<" % 12) # Cases when "*" used and there's not enough values total try: |