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

Method test_reverse

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

Source from the content-addressed store, hash-verified

1901 assert_array_equal(digitize(x, bins), np.arange(11))
1902
1903 def test_reverse(self):
1904 x = np.arange(5, -6, -1)
1905 bins = np.arange(5, -5, -1)
1906 assert_array_equal(digitize(x, bins), np.arange(11))
1907
1908 def test_random(self):
1909 x = rand(10)

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
digitizeFunction · 0.90

Tested by

no test coverage detected