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

Method test_list_decimal

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

Source from the content-addressed store, hash-verified

557 assert approx(expected, rel=5e-8, abs=0) != actual
558
559 def test_list_decimal(self):
560 actual = [Decimal("1.000001"), Decimal("2.000001")]
561 expected = [Decimal("1"), Decimal("2")]
562
563 assert actual == approx(expected)
564
565 def test_list_wrong_len(self):
566 assert [1, 2] != approx([1])

Callers

nothing calls this directly

Calls 1

approxFunction · 0.90

Tested by

no test coverage detected