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

Method test_three_arg_funcs

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

Source from the content-addressed store, hash-verified

1736 assert_equal(out.shape, self.tgtShape)
1737
1738 def test_three_arg_funcs(self):
1739 funcs = [np.random.noncentral_f, np.random.triangular,
1740 np.random.hypergeometric]
1741
1742 for func in funcs:
1743 out = func(self.argOne, self.argTwo, self.argThree)
1744 assert_equal(out.shape, self.tgtShape)
1745
1746 out = func(self.argOne[0], self.argTwo, self.argThree)
1747 assert_equal(out.shape, self.tgtShape)
1748
1749 out = func(self.argOne, self.argTwo[0], self.argThree)
1750 assert_equal(out.shape, self.tgtShape)

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
funcFunction · 0.50

Tested by

no test coverage detected