[Numpy-svn] r3898 - trunk/numpy/lib/tests

numpy-svn@scip... numpy-svn@scip...
Wed Jul 25 04:03:26 CDT 2007


Author: stefan
Date: 2007-07-25 04:02:55 -0500 (Wed, 25 Jul 2007)
New Revision: 3898

Modified:
   trunk/numpy/lib/tests/test_twodim_base.py
Log:
Add regression test for eye.


Modified: trunk/numpy/lib/tests/test_twodim_base.py
===================================================================
--- trunk/numpy/lib/tests/test_twodim_base.py	2007-07-25 05:36:05 UTC (rev 3897)
+++ trunk/numpy/lib/tests/test_twodim_base.py	2007-07-25 09:02:55 UTC (rev 3898)
@@ -27,6 +27,8 @@
                                                 [0,1,0,0],
                                                 [0,0,1,0],
                                                 [0,0,0,1]],'f'))
+        assert_equal(eye(3) == 1, eye(3,dtype=bool))
+
     def check_diag(self):
         assert_equal(eye(4,k=1),array([[0,1,0,0],
                                        [0,0,1,0],



More information about the Numpy-svn mailing list