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

Method test_load_int

Lib/test/test_plistlib.py:1085–1093  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1083 self.assertEqual(self.decode(b'\x0f'), b'')
1084
1085 def test_load_int(self):
1086 self.assertEqual(self.decode(b'\x10\x00'), 0)
1087 self.assertEqual(self.decode(b'\x10\xfe'), 0xfe)
1088 self.assertEqual(self.decode(b'\x11\xfe\xdc'), 0xfedc)
1089 self.assertEqual(self.decode(b'\x12\xfe\xdc\xba\x98'), 0xfedcba98)
1090 self.assertEqual(self.decode(b'\x13\x01\x23\x45\x67\x89\xab\xcd\xef'),
1091 0x0123456789abcdef)
1092 self.assertEqual(self.decode(b'\x13\xfe\xdc\xba\x98\x76\x54\x32\x10'),
1093 -0x123456789abcdf0)
1094
1095 def test_unsupported(self):
1096 unsupported = [*range(1, 8), *range(10, 15),

Callers

nothing calls this directly

Calls 2

decodeMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected