diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-01-04 00:14:13 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-01-04 00:26:31 +0200 |
commit | c1144966417de643d86286dae3189e8c0e09d9c2 (patch) | |
tree | 5ef7aa71845096848034fe2b0da247a87e152a74 /tests/basics/string_format.py | |
parent | ae58795c44bfaa5135e4b8f33dfd5777accdb9ef (diff) |
objstr: Implement kwargs support for str.format().
Diffstat (limited to 'tests/basics/string_format.py')
-rw-r--r-- | tests/basics/string_format.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/basics/string_format.py b/tests/basics/string_format.py index 84ea05475..07071be5a 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: |