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

Method test_positive

tests/python/test_serialization.py:131–134  ·  view source on GitHub ↗

Positive float roundtrips correctly.

(self)

Source from the content-addressed store, hash-verified

129 assert result == 0.0
130
131 def test_positive(self) -> None:
132 """Positive float roundtrips correctly."""
133 result = _roundtrip(3.14159)
134 assert result == pytest.approx(3.14159)
135
136 def test_negative(self) -> None:
137 """Negative float roundtrips correctly."""

Callers

nothing calls this directly

Calls 1

_roundtripFunction · 0.85

Tested by

no test coverage detected