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

Method test_basic

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

Source from the content-addressed store, hash-verified

343
344class TestNdenumerate:
345 def test_basic(self):
346 a = np.array([[1, 2], [3, 4]])
347 assert_equal(list(ndenumerate(a)),
348 [((0, 0), 1), ((0, 1), 2), ((1, 0), 3), ((1, 1), 4)])
349
350
351class TestIndexExpression:

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
ndenumerateClass · 0.90

Tested by

no test coverage detected