summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/string_format.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/string_format.py')
-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 84ea054758..07071be5ab 100644
--- a/tests/basics/string_format.py
+++ b/tests/basics/string_format.py
@@ -60,6 +60,10 @@ test("{:@<6d}", -123)
test("{:@=6d}", -123)
test("{:06d}", -123)
+print("{foo}/foo".format(foo="bar"))
+print("{}".format(123, foo="bar"))
+print("{}-{foo}".format(123, foo="bar"))
+
def test_fmt(conv, fill, alignment, sign, prefix, width, precision, type, arg):
fmt = '{'
if conv: