MCPcopy Create free account
hub / github.com/apache/tvm-ffi / test_int64_extremes_hash

Function test_int64_extremes_hash

tests/python/test_dataclass_hash.py:63–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62
63def test_int64_extremes_hash() -> None:
64 i64_min = -(2**63)
65 i64_max = 2**63 - 1
66 assert RecursiveHash(i64_min) == RecursiveHash(i64_min)
67 assert RecursiveHash(i64_max) == RecursiveHash(i64_max)
68 assert RecursiveHash(i64_min) != RecursiveHash(i64_max)
69
70
71# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

RecursiveHashFunction · 0.90

Tested by

no test coverage detected