diff options
Diffstat (limited to 'tests/basics/string_format_sep.py')
| -rw-r--r-- | tests/basics/string_format_sep.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/basics/string_format_sep.py b/tests/basics/string_format_sep.py new file mode 100644 index 000000000..de131fdaf --- /dev/null +++ b/tests/basics/string_format_sep.py @@ -0,0 +1,9 @@ +try: + "%d" % 1 +except TypeError: + print("SKIP") + raise SystemExit + +for v in (0, 0x10, 0x1000, -0x10, -0x1000): + for sz in range(1, 12): print(("{:0%d,d}" % sz).format(v)) + for sz in range(1, 12): print(("{:0%d_x}" % sz).format(v)) |
