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

Method test_len_trivial

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

Source from the content-addressed store, hash-verified

65 m.put(4, 4)
66
67 def test_len_trivial(self):
68 m = HashTable(10)
69 self.assertEqual(0, len(m))
70 for i in range(10):
71 m.put(i, i)
72 self.assertEqual(i + 1, len(m))
73
74 def test_len_after_deletions(self):
75 m = HashTable(10)

Callers

nothing calls this directly

Calls 2

putMethod · 0.95
HashTableClass · 0.85

Tested by

no test coverage detected