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

Method test_array_like

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

Source from the content-addressed store, hash-verified

2188 assert_array_almost_equal(w, flipud(w), 7)
2189
2190 def test_array_like(self):
2191 x = [0, 0.5]
2192 y1 = sinc(np.array(x))
2193 y2 = sinc(list(x))
2194 y3 = sinc(tuple(x))
2195 assert_array_equal(y1, y2)
2196 assert_array_equal(y1, y3)
2197
2198
2199class TestUnique:

Callers

nothing calls this directly

Calls 2

sincFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected