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

Method test_right_open

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

Source from the content-addressed store, hash-verified

2176 assert_array_equal(digitize(x, bins, True), right_answer)
2177
2178 def test_right_open(self):
2179 x = np.arange(-6, 5)
2180 bins = np.arange(-6, 4)
2181 assert_array_equal(digitize(x, bins, True), np.arange(11))
2182
2183 def test_right_open_reverse(self):
2184 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