Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
14
class
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
put
Method · 0.95
get
Method · 0.95
HashTable
Class · 0.85
Tested by
no test coverage detected