MCPcopy Create free account
hub / github.com/numpy/numpy / test_uint64

Method test_uint64

numpy/lib/tests/test_twodim_base.py:41–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39 eye(3, dtype=bool))
40
41 def test_uint64(self):
42 # Regression test for gh-9982
43 assert_equal(eye(np.uint64(2), dtype=int), array([[1, 0], [0, 1]]))
44 assert_equal(eye(np.uint64(2), M=np.uint64(4), k=np.uint64(1)),
45 array([[0, 1, 0, 0], [0, 0, 1, 0]]))
46
47 def test_diag(self):
48 assert_equal(eye(4, k=1),

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
eyeFunction · 0.90
arrayFunction · 0.90

Tested by

no test coverage detected