MCPcopy
hub / github.com/numpy/numpy / test_right_open_random

Method test_right_open_random

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

Source from the content-addressed store, hash-verified

2186 assert_array_equal(digitize(x, bins, True), np.arange(11))
2187
2188 def test_right_open_random(self):
2189 x = rand(10)
2190 bins = np.linspace(x.min(), x.max(), 10)
2191 assert_(np.all(digitize(x, bins, True) != 10))
2192
2193 def test_monotonic(self):
2194 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