MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / test_match_hashes

Method test_match_hashes

hashes/sha256.py:202–206  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 """
201
202 def test_match_hashes(self) -> None:
203 import hashlib
204
205 msg = bytes("Test String", "utf-8")
206 assert SHA256(msg).hash == hashlib.sha256(msg).hexdigest()
207
208
209def main() -> None:

Callers

nothing calls this directly

Calls 1

SHA256Class · 0.85

Tested by

no test coverage detected