summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorStefan van der Walt <stefan@sun.ac.za>2007-07-25 09:02:55 +0000
committerStefan van der Walt <stefan@sun.ac.za>2007-07-25 09:02:55 +0000
commitc3c9401759b9d7e9282b7745ea1ee600c1169cfd (patch)
tree53a282edcbcfe40d80c751ad2553efd9bf1a324f /numpy/lib
parentfb8c49f5f853f8e8898e0c4a2c9c71571ce6e9e2 (diff)
downloadnumpy-c3c9401759b9d7e9282b7745ea1ee600c1169cfd.tar.gz
Add regression test for eye.
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/tests/test_twodim_base.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_twodim_base.py b/numpy/lib/tests/test_twodim_base.py
index 15ffb2777..46d412ae8 100644
--- a/numpy/lib/tests/test_twodim_base.py
+++ b/numpy/lib/tests/test_twodim_base.py
@@ -27,6 +27,8 @@ class test_eye(NumpyTestCase):
[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],