[Python-checkins] CVS: python/dist/src/Lib/test string_tests.py,1.5,1.6 test_unicode.py,1.29,1.30

M.-A. Lemburg lemburg@users.sourceforge.net
Mon, 29 Jan 2001 03:14:18 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv11671/Lib/test

Modified Files:
	string_tests.py test_unicode.py 
Log Message:
Fixed .capitalize() method of Unicode objects to work like the
corresponding string method. Added tests for this too.

Patch written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.



Index: string_tests.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/string_tests.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** string_tests.py	2001/01/18 02:22:22	1.5
--- string_tests.py	2001/01/29 11:14:15	1.6
***************
*** 54,57 ****
--- 54,59 ----
      test('capitalize', ' hello ', ' hello ')
      test('capitalize', 'hello ', 'Hello ')
+     test('capitalize', 'aaaa', 'Aaaa')
+     test('capitalize', 'AaAa', 'Aaaa')
  
      test('count', 'aaa', 3, 'a')

Index: test_unicode.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unicode.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -r1.29 -r1.30
*** test_unicode.py	2001/01/19 19:01:56	1.29
--- test_unicode.py	2001/01/29 11:14:15	1.30
***************
*** 32,35 ****
--- 32,37 ----
  test('capitalize', u' hello ', u' hello ')
  test('capitalize', u'hello ', u'Hello ')
+ test('capitalize', u'aaaa', u'Aaaa')
+ test('capitalize', u'AaAa', u'Aaaa')
  
  test('count', u'aaa', 3, u'a')