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

Method test_identity

numpy/ma/tests/test_core.py:4425–4428  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4423 assert_(output[()] is masked)
4424
4425 def test_identity(self):
4426 a = identity(5)
4427 assert_(isinstance(a, MaskedArray))
4428 assert_equal(a, np.identity(5))
4429
4430 def test_power(self):
4431 x = -1.1

Callers

nothing calls this directly

Calls 4

identityFunction · 0.90
assert_equalFunction · 0.90
identityMethod · 0.80
assert_Function · 0.50

Tested by

no test coverage detected