Lines Matching refs:h2
460 h2 = h.set('a', 'b')
461 self.assertIsNot(h, h2)
463 self.assertEqual(len(h2), 1)
468 self.assertEqual(h2.get('a'), 'b')
470 h3 = h2.set('b', 10)
471 self.assertIsNot(h2, h3)
473 self.assertEqual(len(h2), 1)
479 self.assertIsNone(h2.get('b'))
482 self.assertEqual(h2.get('a'), 'b')
484 h = h2 = h3 = None
490 h2 = h1.set('1', o)
491 self.assertIs(h1, h2)
496 h2 = h1.set('key', [])
497 self.assertIsNot(h1, h2)
499 self.assertEqual(len(h2), 1)
500 self.assertIsNot(h1.get('key'), h2.get('key'))
508 h2 = h.set(k1, 'a')
509 h3 = h2.set(k2, 'b')
514 self.assertEqual(h2.get(k1), 'a')
515 self.assertEqual(h2.get(k2), None)
534 self.assertEqual(len(h2), 1)
663 h2 = h.delete(Z)
664 self.assertIs(h2, h)
931 h2 = hamt()
932 h2 = h2.set(A, 'a')
934 self.assertFalse(h1 == h2)
935 self.assertTrue(h1 != h2)
937 h2 = h2.set(B, 'b')
938 self.assertFalse(h1 == h2)
939 self.assertTrue(h1 != h2)
941 h2 = h2.set(C, 'c')
942 self.assertFalse(h1 == h2)
943 self.assertTrue(h1 != h2)
945 h2 = h2.set(D, 'd2')
946 self.assertFalse(h1 == h2)
947 self.assertTrue(h1 != h2)
949 h2 = h2.set(D, 'd')
950 self.assertTrue(h1 == h2)
951 self.assertFalse(h1 != h2)
953 h2 = h2.set(E, 'e')
954 self.assertFalse(h1 == h2)
955 self.assertTrue(h1 != h2)
957 h2 = h2.delete(D)
958 self.assertFalse(h1 == h2)
959 self.assertTrue(h1 != h2)
961 h2 = h2.set(E, 'd')
962 self.assertFalse(h1 == h2)
963 self.assertTrue(h1 != h2)
972 h2 = hamt()
973 h2 = h2.set(Er, 'a')
976 h1 == h2
979 h1 != h2