From 8c3858b01623f9527b57b13c44ff97c67bafb00b Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 19 Jan 2014 18:41:55 +0200 Subject: Move tests in basic/tests/ up one level preparating to multiple test dirs. --- tests/basics/string-format.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/basics/string-format.py (limited to 'tests/basics/string-format.py') diff --git a/tests/basics/string-format.py b/tests/basics/string-format.py new file mode 100644 index 0000000000..ba51e0890b --- /dev/null +++ b/tests/basics/string-format.py @@ -0,0 +1,8 @@ +print("{}-{}".format(1, [4, 5])) +print("{0}-{1}".format(1, [4, 5])) +print("{:x}".format(1)) +print("{!r}".format(2)) +# TODO +#print("{1}-{0}".format(1, [4, 5])) +#print("{:x}".format(0x10)) +#print("{!r}".format("foo")) -- cgit v1.2.3