MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / test_hash16_pinned

Method test_hash16_pinned

tests/test_normalize.py:125–129  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

123 """
124
125 def test_hash16_pinned(self) -> None:
126 # SHA-256("hello").hexdigest()[:16]
127 assert hash16("hello") == "2cf24dba5fb0a30e"
128 # Empty string is a meaningful input — pin it explicitly.
129 assert hash16("") == "e3b0c44298fc1c14"
130
131 def test_normalize_messages_to_hashes_pinned(self) -> None:
132 messages = [{"role": "user", "content": "hello"}]

Callers

nothing calls this directly

Calls 1

hash16Function · 0.90

Tested by

no test coverage detected