(self)
| 23 | |
| 24 | class TestEye: |
| 25 | def test_basic(self): |
| 26 | assert_equal(eye(4), |
| 27 | array([[1, 0, 0, 0], |
| 28 | [0, 1, 0, 0], |
| 29 | [0, 0, 1, 0], |
| 30 | [0, 0, 0, 1]])) |
| 31 | |
| 32 | assert_equal(eye(4, dtype='f'), |
| 33 | array([[1, 0, 0, 0], |
| 34 | [0, 1, 0, 0], |
| 35 | [0, 0, 1, 0], |
| 36 | [0, 0, 0, 1]], 'f')) |
| 37 | |
| 38 | assert_equal(eye(3) == 1, |
| 39 | eye(3, dtype=bool)) |
| 40 | |
| 41 | def test_uint64(self): |
| 42 | # Regression test for gh-9982 |
nothing calls this directly
no test coverage detected