MCPcopy Index your code
hub / github.com/python/cpython / check

Method check

Lib/test/test_decimal.py:821–824  ·  view source on GitHub ↗
(arg, expected)

Source from the content-addressed store, hash-verified

819 cls = Decimal
820
821 def check(arg, expected):
822 d = cls.from_number(arg)
823 self.assertIs(type(d), cls)
824 self.assertEqual(d, expected)
825
826 check(314, Decimal(314))
827 check(3.14, Decimal.from_float(3.14))

Callers

nothing calls this directly

Calls 3

from_numberMethod · 0.45
assertIsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected