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

Method test_forward

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

Source from the content-addressed store, hash-verified

1896class TestDigitize:
1897
1898 def test_forward(self):
1899 x = np.arange(-6, 5)
1900 bins = np.arange(-5, 5)
1901 assert_array_equal(digitize(x, bins), np.arange(11))
1902
1903 def test_reverse(self):
1904 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