[Python-checkins] python/dist/src/Lib/test test_complex.py, 1.16, 1.17

birkenfeld@users.sourceforge.net birkenfeld at users.sourceforge.net
Sat Sep 17 09:51:19 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4057/Lib/test
Modified Files:
	test_complex.py 
Log Message:
Test case for latest complexobject fix.
Index: test_complex.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_complex.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- test_complex.py	26 Apr 2005 03:45:26 -0000	1.16
+++ test_complex.py	17 Sep 2005 07:51:15 -0000	1.17
@@ -310,6 +310,8 @@
 self.assertEqual(repr(1+6j), '(1+6j)')
 self.assertEqual(repr(1-6j), '(1-6j)')
 
+ self.assertNotEqual(repr(-(1+0j)), '(-1+-0j)')
+
 def test_neg(self):
 self.assertEqual(-(1+6j), -1-6j)
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /