| 1 |
# This test code was written by the `hypothesis.extra.ghostwriter` module |
| 2 |
# and is provided under the Creative Commons Zero public domain dedication. |
| 3 |
|
| 4 |
import numpy |
| 5 |
import test_expected_output |
| 6 |
from hypothesis import given, strategies as st |
| 7 |
from hypothesis.extra.numpy import array_shapes, arrays |
| 8 |
from numpy import dtype |
| 9 |
|
| 10 |
|
| 11 |
@given( |
| 12 |
f=arrays(dtype=dtype("float64"), shape=array_shapes(max_dims=2)), |
| 13 |
fc=arrays(dtype=numpy.float64 | numpy.complex128, shape=array_shapes(max_dims=2)), |
| 14 |
union=st.one_of( |
| 15 |
st.none(), |
| 16 |
arrays(dtype=numpy.float64 | numpy.complex128, shape=array_shapes(max_dims=2)), |
| 17 |
), |
| 18 |
) |
| 19 |
def test_fuzz_various_numpy_annotations(f, fc, union): |
| 20 |
test_expected_output.various_numpy_annotations(f=f, fc=fc, union=union) |