diff Lib/test/test_string.py @ 12025:7994d9db7f4d legacy-trunk

On 17-Mar-2000, Marc-Andre Lemburg said: Attached you find an update of the Unicode implementation. The patch is against the current CVS version. I would appreciate if someone with CVS checkin permissions could check the changes in. The patch contains all bugs and patches sent this week and also fixes a leak in the codecs code and a bug in the free list code for Unicode objects (which only shows up when compiling Python with Py_DEBUG; thanks to MarkH for spotting this one).
author Barry Warsaw <barry@python.org>
date Mon, 20 Mar 2000 16:36:48 +0000
parents 1789fae5f074
children 0481096a0f45
line wrap: on
line diff
--- a/Lib/test/test_string.py	Mon Mar 20 16:09:09 2000 +0000
+++ b/Lib/test/test_string.py	Mon Mar 20 16:36:48 2000 +0000
@@ -143,6 +143,7 @@
 test('translate', 'xyz', 'xyz', table)
 
 test('replace', 'one!two!three!', 'one@two!three!', '!', '@', 1)
+test('replace', 'one!two!three!', 'onetwothree', '!', '')
 test('replace', 'one!two!three!', 'one@two@three!', '!', '@', 2)
 test('replace', 'one!two!three!', 'one@two@three@', '!', '@', 3)
 test('replace', 'one!two!three!', 'one@two@three@', '!', '@', 4)