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

Function assertIsClose

extra_tests/snippets/stdlib_math.py:108–109  ·  view source on GitHub ↗
(a, b, *args, **kwargs)

Source from the content-addressed store, hash-verified

106
107
108def assertIsClose(a, b, *args, **kwargs):
109 assert isclose(a, b, *args, **kwargs) == True, "%s and %s should be close!" % (a, b)
110
111
112def assertIsNotClose(a, b, *args, **kwargs):

Callers 2

assertAllCloseFunction · 0.85
stdlib_math.pyFile · 0.85

Calls 1

iscloseFunction · 0.50

Tested by

no test coverage detected