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

Method test_oct

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

Source from the content-addressed store, hash-verified

1633 self.assertEqual(next(it, 42), 42)
1634
1635 def test_oct(self):
1636 self.assertEqual(oct(100), '0o144')
1637 self.assertEqual(oct(-100), '-0o144')
1638 self.assertRaises(TypeError, oct, ())
1639
1640 def write_testfile(self):
1641 # NB the first 4 lines are also used to test input, below

Callers

nothing calls this directly

Calls 3

octFunction · 0.85
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected