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

Method test_negative

tests/python/test_serialization.py:136–139  ·  view source on GitHub ↗

Negative float roundtrips correctly.

(self)

Source from the content-addressed store, hash-verified

134 assert result == pytest.approx(3.14159)
135
136 def test_negative(self) -> None:
137 """Negative float roundtrips correctly."""
138 result = _roundtrip(-2.718)
139 assert result == pytest.approx(-2.718)
140
141 def test_very_small(self) -> None:
142 """Very small float roundtrips correctly."""

Callers

nothing calls this directly

Calls 1

_roundtripFunction · 0.85

Tested by

no test coverage detected