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

Method test_round_large

Lib/test/test_builtin.py:1943–1949  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1941 "test will fail; failure is probably due to a "
1942 "buggy system round function")
1943 def test_round_large(self):
1944 # Issue #1869: integral floats should remain unchanged
1945 self.assertEqual(round(5e15-1), 5e15-1)
1946 self.assertEqual(round(5e15), 5e15)
1947 self.assertEqual(round(5e15+1), 5e15+1)
1948 self.assertEqual(round(5e15+2), 5e15+2)
1949 self.assertEqual(round(5e15+3), 5e15+3)
1950
1951 def test_bug_27936(self):
1952 # Verify that ndigits=None means the same as passing in no argument

Callers

nothing calls this directly

Calls 2

roundFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected