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

Function test_float_infinity_hash

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

Source from the content-addressed store, hash-verified

87
88
89def test_float_infinity_hash() -> None:
90 assert RecursiveHash(math.inf) == RecursiveHash(math.inf)
91 assert RecursiveHash(-math.inf) == RecursiveHash(-math.inf)
92 assert RecursiveHash(math.inf) != RecursiveHash(-math.inf)
93
94
95# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

RecursiveHashFunction · 0.90

Tested by

no test coverage detected