(self, x)
| 264 | self.assertEqual(bb.wi, ByteBuffer.write_long_size(x)) |
| 265 | |
| 266 | def check_uint(self, x): |
| 267 | x = ByteBuffer.truncate_int(x) |
| 268 | bb = ByteBuffer() |
| 269 | bb1 = ByteBuffer() |
| 270 | bb.write_uint(x) |
| 271 | bb1.write_ulong(x & 0xffff_ffff) |
| 272 | self.assertTrue(bb.__eq__(bb1)) |
| 273 | y = bb.read_uint() |
| 274 | self.assertEqual(x, y) |
| 275 | self.assertEqual(bb.ri, bb.wi) |
| 276 | self.assertEqual(bb.wi, ByteBuffer.write_uint_size(x)) |
| 277 | self.assertEqual(bb.wi, ByteBuffer.write_ulong_size(x & 0xffff_ffff)) |
| 278 | |
| 279 | def check_ulong(self, x): |
| 280 | x = ByteBuffer.truncate_long(x) |
no test coverage detected