MCPcopy Index your code
hub / github.com/numpy/numpy / test_array_like

Method test_array_like

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

Source from the content-addressed store, hash-verified

2445 assert_array_almost_equal(w, flipud(w), 7)
2446
2447 def test_array_like(self):
2448 x = [0, 0.5]
2449 y1 = sinc(np.array(x))
2450 y2 = sinc(list(x))
2451 y3 = sinc(tuple(x))
2452 assert_array_equal(y1, y2)
2453 assert_array_equal(y1, y3)
2454
2455 def test_bool_dtype(self):
2456 x = (np.arange(4, dtype=np.uint8) % 2 == 1)

Callers

nothing calls this directly

Calls 2

sincFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected