[Python-checkins] r46813 - python/branches/release24-maint/Lib/test/string_tests.py

georg.brandl python-checkins at python.org
Sat Jun 10 08:44:51 CEST 2006


Author: georg.brandl
Date: Sat Jun 10 08:44:50 2006
New Revision: 46813
Modified:
 python/branches/release24-maint/Lib/test/string_tests.py
Log:
Add the new test from the #1503157 patch to the branch.
Modified: python/branches/release24-maint/Lib/test/string_tests.py
==============================================================================
--- python/branches/release24-maint/Lib/test/string_tests.py	(original)
+++ python/branches/release24-maint/Lib/test/string_tests.py	Sat Jun 10 08:44:50 2006
@@ -584,6 +584,8 @@
 # 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']))


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /