[Python-checkins] python/dist/src/Lib/test test_enumerate.py, 1.9, 1.10

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Tue Feb 10 04:33:41 EST 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31188/Lib/test

Modified Files:
	test_enumerate.py 
Log Message:
Make reversed() transparent with respect to length.

Index: test_enumerate.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_enumerate.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** test_enumerate.py	8 Feb 2004 10:49:41 -0000	1.9
--- test_enumerate.py	10 Feb 2004 09:33:39 -0000	1.10
***************
*** 146,149 ****
--- 146,153 ----
          self.assertEqual(list(reversed(reversed(s))), list(s))
  
+     def test_len(self):
+         s = 'hello'
+         self.assertEqual(len(reversed(s)), len(s))
+ 
  def test_main(verbose=None):
      testclasses = (EnumerateTestCase, SubclassTestCase, TestEmpty, TestBig,




More information about the Python-checkins mailing list