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

Method test_basic

numpy/lib/tests/test_function_base.py:1321–1324  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1319class TestExtins:
1320
1321 def test_basic(self):
1322 a = np.array([1, 3, 2, 1, 2, 3, 3])
1323 b = extract(a > 1, a)
1324 assert_array_equal(b, [3, 2, 2, 3, 3])
1325
1326 def test_place(self):
1327 # Make sure that non-np.ndarray objects

Callers

nothing calls this directly

Calls 2

extractFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected