MCPcopy
hub / github.com/numpy/numpy / test_basic

Method test_basic

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

Source from the content-addressed store, hash-verified

1538class TestExtins:
1539
1540 def test_basic(self):
1541 a = np.array([1, 3, 2, 1, 2, 3, 3])
1542 b = extract(a > 1, a)
1543 assert_array_equal(b, [3, 2, 2, 3, 3])
1544
1545 def test_place(self):
1546 # 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