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

Method test_basic

numpy/lib/tests/test_index_tricks.py:367–370  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

365
366class TestNdenumerate:
367 def test_basic(self):
368 a = np.array([[1, 2], [3, 4]])
369 assert_equal(list(ndenumerate(a)),
370 [((0, 0), 1), ((0, 1), 2), ((1, 0), 3), ((1, 1), 4)])
371
372
373class TestIndexExpression:

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
ndenumerateClass · 0.90

Tested by

no test coverage detected