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

Function test_float_signed_zero_hash

tests/python/test_dataclass_hash.py:84–86  ·  view source on GitHub ↗

Both +0.0 and -0.0 hash the same (consistent with RecursiveEq).

()

Source from the content-addressed store, hash-verified

82
83
84def test_float_signed_zero_hash() -> None:
85 """Both +0.0 and -0.0 hash the same (consistent with RecursiveEq)."""
86 assert RecursiveHash(-0.0) == RecursiveHash(0.0)
87
88
89def test_float_infinity_hash() -> None:

Callers

nothing calls this directly

Calls 1

RecursiveHashFunction · 0.90

Tested by

no test coverage detected