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

Method test_one_entry

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

Source from the content-addressed store, hash-verified

13
14class TestHashTable(unittest.TestCase):
15 def test_one_entry(self):
16 m = HashTable(10)
17 m.put(1, "1")
18 self.assertEqual("1", m.get(1))
19
20 def test_add_entry_bigger_than_table_size(self):
21 m = HashTable(10)

Callers

nothing calls this directly

Calls 3

putMethod · 0.95
getMethod · 0.95
HashTableClass · 0.85

Tested by

no test coverage detected