| 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 operator |
| 5 |
import test_expected_output |
| 6 |
from hypothesis import given, reject, strategies as st |
| 7 |
|
| 8 |
|
| 9 |
@given(a=st.integers(), b=st.integers()) |
| 10 |
def test_roundtrip_divide_mul(a: int, b: int) -> None: |
| 11 |
try: |
| 12 |
value0 = test_expected_output.divide(a=a, b=b) |
| 13 |
except ZeroDivisionError: |
| 14 |
reject() |
| 15 |
value1 = operator.mul(value0, b) |
| 16 |
assert a == value1, (a, value1) |