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

Method test_binary_PyUFunc

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

Source from the content-addressed store, hash-verified

125
126 @pytest.mark.parametrize('input_dtype,output_dtype', np_dtypes)
127 def test_binary_PyUFunc(self, input_dtype, output_dtype, f=f2, x=0, y=1):
128 xs = np.full(10, input_dtype(x), dtype=output_dtype)
129 ys = f(xs, xs)[::2]
130 assert_allclose(ys, y)
131 assert_equal(ys.dtype, output_dtype)
132
133 # class to use in testing object method loops
134 class foo:

Callers

nothing calls this directly

Calls 3

assert_allcloseFunction · 0.90
assert_equalFunction · 0.90
fFunction · 0.70

Tested by

no test coverage detected