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

Method test_right_open_random

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

Source from the content-addressed store, hash-verified

1929 assert_array_equal(digitize(x, bins, True), np.arange(11))
1930
1931 def test_right_open_random(self):
1932 x = rand(10)
1933 bins = np.linspace(x.min(), x.max(), 10)
1934 assert_(np.all(digitize(x, bins, True) != 10))
1935
1936 def test_monotonic(self):
1937 x = [-1, 0, 1, 2]

Callers

nothing calls this directly

Calls 7

assert_Function · 0.90
digitizeFunction · 0.90
randFunction · 0.85
linspaceMethod · 0.80
minMethod · 0.45
maxMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected