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

Method check

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

Source from the content-addressed store, hash-verified

820 cls = Decimal
821
822 def check(arg, expected):
823 d = cls.from_number(arg)
824 self.assertIs(type(d), cls)
825 self.assertEqual(d, expected)
826
827 check(314, Decimal(314))
828 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