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

Method test_binary_PyUFunc

numpy/core/tests/test_ufunc.py:116–120  ·  view source on GitHub ↗
(self, input_dtype, output_dtype, f=f2, x=0, y=1)

Source from the content-addressed store, hash-verified

114
115 @pytest.mark.parametrize('input_dtype,output_dtype', np_dtypes)
116 def test_binary_PyUFunc(self, input_dtype, output_dtype, f=f2, x=0, y=1):
117 xs = np.full(10, input_dtype(x), dtype=output_dtype)
118 ys = f(xs, xs)[::2]
119 assert_allclose(ys, y)
120 assert_equal(ys.dtype, output_dtype)
121
122 # class to use in testing object method loops
123 class foo:

Callers

nothing calls this directly

Calls 3

assert_allcloseFunction · 0.90
assert_equalFunction · 0.90
fFunction · 0.85

Tested by

no test coverage detected