(self)
| 1283 | self.assertIsNone(ref()) |
| 1284 | |
| 1285 | def test_hamt_in_1(self): |
| 1286 | A = HashKey(100, 'A') |
| 1287 | AA = HashKey(100, 'A') |
| 1288 | |
| 1289 | B = HashKey(101, 'B') |
| 1290 | |
| 1291 | h = hamt() |
| 1292 | h = h.set(A, 1) |
| 1293 | |
| 1294 | self.assertTrue(A in h) |
| 1295 | self.assertFalse(B in h) |
| 1296 | |
| 1297 | with self.assertRaises(EqError): |
| 1298 | with HaskKeyCrasher(error_on_eq=True): |
| 1299 | AA in h |
| 1300 | |
| 1301 | with self.assertRaises(HashingError): |
| 1302 | with HaskKeyCrasher(error_on_hash=True): |
| 1303 | AA in h |
| 1304 | |
| 1305 | def test_hamt_getitem_1(self): |
| 1306 | A = HashKey(100, 'A') |
nothing calls this directly
no test coverage detected