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

Method test_simple

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

Source from the content-addressed store, hash-verified

2439class TestSinc:
2440
2441 def test_simple(self):
2442 assert_(sinc(0) == 1)
2443 w = sinc(np.linspace(-1, 1, 100))
2444 # check symmetry
2445 assert_array_almost_equal(w, flipud(w), 7)
2446
2447 def test_array_like(self):
2448 x = [0, 0.5]

Callers

nothing calls this directly

Calls 5

assert_Function · 0.90
sincFunction · 0.90
flipudFunction · 0.90
linspaceMethod · 0.80

Tested by

no test coverage detected