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

Method test_empty_x

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

Source from the content-addressed store, hash-verified

3118 assert_raises(ValueError, interp, [], [], [3, 4, 5])
3119
3120 def test_empty_x(self):
3121 # gh-30316
3122 assert_array_equal(interp([], [], []), np.array([], dtype=np.float64))
3123 assert_array_equal(interp([], [1, 2], [3, 4]), np.array([], dtype=np.float64))
3124 assert_array_equal(
3125 interp([], [], [], period=360), np.array([], dtype=np.float64))
3126 assert_array_equal(
3127 interp([], [1, 2], [3 + 4j, 5 + 6j]), np.array([], dtype=np.complex128))
3128
3129 def test_basic(self):
3130 x = np.linspace(0, 1, 5)

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
interpFunction · 0.90

Tested by

no test coverage detected