]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add the new test from the #1503157 patch to the branch.
authorGeorg Brandl <georg@python.org>
Sat, 10 Jun 2006 06:44:50 +0000 (06:44 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 10 Jun 2006 06:44:50 +0000 (06:44 +0000)
Lib/test/string_tests.py

index c8ed07cf60f38e454c3831b0679639aa2f0b8c85..b4300767f7fa82da8c759052b50436c4e0552c8c 100644 (file)
@@ -584,6 +584,8 @@ class MixinStrUnicodeUserStringTest:
         # test.test_string.StringTest.test_join)
         self.checkequal('a b c d', ' ', 'join', ['a', 'b', 'c', 'd'])
         self.checkequal('abcd', '', 'join', ('a', 'b', 'c', 'd'))
+        self.checkequal('bd', '', 'join', ('', 'b', '', 'd'))
+        self.checkequal('ac', '', 'join', ('a', '', 'c', ''))
         self.checkequal('w x y z', ' ', 'join', Sequence())
         self.checkequal('abc', 'a', 'join', ('abc',))
         self.checkequal('z', 'a', 'join', UserList(['z']))