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

Method test_right_open

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

Source from the content-addressed store, hash-verified

1919 assert_array_equal(digitize(x, bins, True), right_answer)
1920
1921 def test_right_open(self):
1922 x = np.arange(-6, 5)
1923 bins = np.arange(-6, 4)
1924 assert_array_equal(digitize(x, bins, True), np.arange(11))
1925
1926 def test_right_open_reverse(self):
1927 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