MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_reasonable_defaults

Method test_reasonable_defaults

testing/python/approx.py:412–415  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

410 1.1 == approx(1, rel=nan, abs=nan)
411
412 def test_reasonable_defaults(self):
413 # Whatever the defaults are, they should work for numbers close to 1
414 # than have a small amount of floating-point error.
415 assert 0.1 + 0.2 == approx(0.3)
416
417 def test_default_tolerances(self):
418 # This tests the defaults as they are currently set. If you change the

Callers

nothing calls this directly

Calls 1

approxFunction · 0.90

Tested by

no test coverage detected