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

Method test_hex

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

Source from the content-addressed store, hash-verified

1201 hash(A())
1202
1203 def test_hex(self):
1204 self.assertEqual(hex(16), '0x10')
1205 self.assertEqual(hex(-16), '-0x10')
1206 self.assertRaises(TypeError, hex, {})
1207
1208 def test_id(self):
1209 id(None)

Callers

nothing calls this directly

Calls 3

hexFunction · 0.85
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected