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

Function params_0

numpy/random/tests/test_smoke.py:16–26  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

14
15
16def params_0(f):
17 val = f()
18 assert_(np.isscalar(val))
19 val = f(10)
20 assert_(val.shape == (10,))
21 val = f((10, 10))
22 assert_(val.shape == (10, 10))
23 val = f((10, 10, 10))
24 assert_(val.shape == (10, 10, 10))
25 val = f(size=(5, 5))
26 assert_(val.shape == (5, 5))
27
28
29def params_1(f, bounded=False):

Calls 2

assert_Function · 0.90
fFunction · 0.85

Tested by

no test coverage detected