Debian Codegraph @

hypothesis-python/tests/ghostwriter/recorded/addition_op_multimagic.txt

raw
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 operator
6 import test_expected_output
7 from hypothesis import given, strategies as st
8
9
10 @given(a=st.floats(), b=st.floats())
11 def test_equivalent_add_add_add(a: float, b: float) -> None:
12 result_add_numpy = numpy.add(a, b)
13 result_add_operator = operator.add(a, b)
14 result_add_test_expected_output = test_expected_output.add(a=a, b=b)
15 assert result_add_numpy == result_add_operator, (
16 result_add_numpy,
17 result_add_operator,
18 )
19 assert result_add_numpy == result_add_test_expected_output, (
20 result_add_numpy,
21 result_add_test_expected_output,
22 )