MCPcopy Index your code
hub / github.com/numpy/numpy / test_three_arg_funcs

Method test_three_arg_funcs

numpy/random/tests/test_random.py:1710–1723  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1708 assert_equal(out.shape, tgtShape)
1709
1710 def test_three_arg_funcs(self):
1711 argOne, argTwo, argThree, tgtShape = self._create_arrays()
1712 funcs = [np.random.noncentral_f, np.random.triangular,
1713 np.random.hypergeometric]
1714
1715 for func in funcs:
1716 out = func(argOne, argTwo, argThree)
1717 assert_equal(out.shape, tgtShape)
1718
1719 out = func(argOne[0], argTwo, argThree)
1720 assert_equal(out.shape, tgtShape)
1721
1722 out = func(argOne, argTwo[0], argThree)
1723 assert_equal(out.shape, tgtShape)

Callers

nothing calls this directly

Calls 3

_create_arraysMethod · 0.95
assert_equalFunction · 0.90
funcFunction · 0.50

Tested by

no test coverage detected