(self, input_dtype, output_dtype, f=np.exp, x=0, y=1)
| 115 | |
| 116 | @pytest.mark.parametrize('input_dtype,output_dtype', np_dtypes) |
| 117 | def test_unary_PyUFunc(self, input_dtype, output_dtype, f=np.exp, x=0, y=1): |
| 118 | xs = np.full(10, input_dtype(x), dtype=output_dtype) |
| 119 | ys = f(xs)[::2] |
| 120 | assert_allclose(ys, y) |
| 121 | assert_equal(ys.dtype, output_dtype) |
| 122 | |
| 123 | def f2(x, y): |
| 124 | return x**y |
nothing calls this directly
no test coverage detected