[pypy-svn] rev 2356 - pypy/trunk/src/pypy/objspace/std/test

alex at codespeak.net alex at codespeak.net
Tue Dec 16 12:36:38 CET 2003


Author: alex
Date: Tue Dec 16 12:36:37 2003
New Revision: 2356

Modified:
   pypy/trunk/src/pypy/objspace/std/test/test_dictobject.py
Log:
added repr tests


Modified: pypy/trunk/src/pypy/objspace/std/test/test_dictobject.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/test/test_dictobject.py	(original)
+++ pypy/trunk/src/pypy/objspace/std/test/test_dictobject.py	Tue Dec 16 12:36:37 2003
@@ -309,6 +309,10 @@
         self.assertEqual('{1: 2}', str({1: 2}))
         self.assertEqual("{'ba': 'bo'}", str({'ba': 'bo'}))
         self.assertEqual("{1: 2, 'ba': 'bo'}", str({1: 2, 'ba': 'bo'}))
+        self.assertEqual('{}', repr({}))
+        self.assertEqual('{1: 2}', repr({1: 2}))
+        self.assertEqual("{'ba': 'bo'}", repr({'ba': 'bo'}))
+        self.assertEqual("{1: 2, 'ba': 'bo'}", repr({1: 2, 'ba': 'bo'}))
         
     def tooslow_test_new(self):
         d = dict()


More information about the Pypy-commit mailing list