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

Method test_is_integer

Lib/test/test_long.py:1612–1615  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1610 self.assertIs(int.from_bytes(b, signed=True), i)
1611
1612 def test_is_integer(self):
1613 self.assertTrue((-1).is_integer())
1614 self.assertTrue((0).is_integer())
1615 self.assertTrue((1).is_integer())
1616
1617 def test_access_to_nonexistent_digit_0(self):
1618 # http://bugs.python.org/issue14630: A bug in _PyLong_Copy meant that

Callers

nothing calls this directly

Calls 2

assertTrueMethod · 0.80
is_integerMethod · 0.80

Tested by

no test coverage detected