summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/string_format.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/basics/string_format.py b/tests/basics/string_format.py
index d8724c9474..7fb53cb491 100644
--- a/tests/basics/string_format.py
+++ b/tests/basics/string_format.py
@@ -62,6 +62,10 @@ test("{:@<6d}", -123)
test("{:@=6d}", -123)
test("{:06d}", -123)
+test("{:>20}", "foo")
+test("{:^20}", "foo")
+test("{:<20}", "foo")
+
print("{foo}/foo".format(foo="bar"))
print("{}".format(123, foo="bar"))
print("{}-{foo}".format(123, foo="bar"))