[pypy-svn] rev 708 - pypy/trunk/src/pypy/module/test

lac at codespeak.net lac at codespeak.net
Thu May 29 18:01:05 CEST 2003


Author: lac
Date: Thu May 29 18:01:04 2003
New Revision: 708

Modified:
   pypy/trunk/src/pypy/module/test/test_zip.py
Log:
add test to see if zip is broken in ../builtin_app.py, or if the new 
strings are.  zip was fine.


Modified: pypy/trunk/src/pypy/module/test/test_zip.py
==============================================================================
--- pypy/trunk/src/pypy/module/test/test_zip.py	(original)
+++ pypy/trunk/src/pypy/module/test/test_zip.py	Thu May 29 18:01:04 2003
@@ -23,6 +23,10 @@
    def test_string(self):
       self.assertEqual(zip('hello'), [('h',), ('e',), ('l',), ('l',), ('o',)])
 
+   def test_strings(self):
+      self.assertEqual(zip('hello', 'bye'),
+                       [('h', 'b'), ('e', 'y'), ('l', 'e')])
+
    def test_mixed_types(self):
       self.assertEqual(zip('hello', [1,2,3,4], (7,8,9,10)),
                        [('h', 1, 7), ('e', 2, 8), ('l', 3, 9), ('l', 4, 10)])


More information about the Pypy-commit mailing list