1.1 --- a/tests/string.py Mon Apr 03 01:37:06 2017 +0200
1.2 +++ b/tests/string.py Mon Apr 03 02:24:46 2017 +0200
1.3 @@ -100,6 +100,8 @@
1.4 print s7.split(maxsplit=2) # ["Hello...", "world,", "planet,\n globe."]
1.5 print s7.split("\n") # ["Hello...", " world,", " planet,", " globe."]
1.6
1.7 +print "RGB(%r, %r, %r)".split("%") # ["RGB(", "r, ", "r, ", "r)"]
1.8 +
1.9 # NOTE: To test rsplit once list.insert is implemented.
1.10
1.11 # Test stripping of strings.
1.12 @@ -117,3 +119,7 @@
1.13 # Test quoting of strings.
1.14
1.15 print repr('æ\nø\rå\t"') # "\xe6\n\xf8\r\xe5\t\""
1.16 +
1.17 +# Test formatting of strings.
1.18 +
1.19 +print "RGB(%r, %r, %r)" % (1, 2, 3)