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

Method test_simple

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

Source from the content-addressed store, hash-verified

2182class TestSinc:
2183
2184 def test_simple(self):
2185 assert_(sinc(0) == 1)
2186 w = sinc(np.linspace(-1, 1, 100))
2187 # check symmetry
2188 assert_array_almost_equal(w, flipud(w), 7)
2189
2190 def test_array_like(self):
2191 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