MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_addition_commutes

Method test_addition_commutes

Lib/test/test_math_property.py:35–41  ·  view source on GitHub ↗
(self, x, y, a, b)

Source from the content-addressed store, hash-verified

33 a=integers(min_value=0),
34 b=integers(min_value=0))
35 def test_addition_commutes(self, x, y, a, b):
36 first = nextafter(x, y, steps=a)
37 second = nextafter(first, y, steps=b)
38 combined = nextafter(x, y, steps=a+b)
39 hypothesis.note(f"{first} -> {second} == {combined}")
40
41 assert_equal_float(second, combined)

Callers

nothing calls this directly

Calls 2

nextafterFunction · 0.90
assert_equal_floatFunction · 0.85

Tested by

no test coverage detected