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

Method test_forward

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

Source from the content-addressed store, hash-verified

2153class TestDigitize:
2154
2155 def test_forward(self):
2156 x = np.arange(-6, 5)
2157 bins = np.arange(-5, 5)
2158 assert_array_equal(digitize(x, bins), np.arange(11))
2159
2160 def test_reverse(self):
2161 x = np.arange(5, -6, -1)

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
digitizeFunction · 0.90

Tested by

no test coverage detected