MCPcopy
hub / github.com/keon/algorithms / test_len_after_deletions

Method test_len_after_deletions

tests/test_map.py:74–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

72 self.assertEqual(i + 1, len(m))
73
74 def test_len_after_deletions(self):
75 m = HashTable(10)
76 m.put(1, 1)
77 self.assertEqual(1, len(m))
78 m.del_(1)
79 self.assertEqual(0, len(m))
80 m.put(11, 42)
81 self.assertEqual(1, len(m))
82
83 def test_resizable_hash_table(self):
84 m = ResizableHashTable()

Callers

nothing calls this directly

Calls 3

putMethod · 0.95
del_Method · 0.95
HashTableClass · 0.85

Tested by

no test coverage detected