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

Method test_positive

tests/python/test_serialization.py:102–105  ·  view source on GitHub ↗

Positive int roundtrips correctly.

(self)

Source from the content-addressed store, hash-verified

100 assert result == 0
101
102 def test_positive(self) -> None:
103 """Positive int roundtrips correctly."""
104 result = _roundtrip(42)
105 assert result == 42
106
107 def test_negative(self) -> None:
108 """Negative int roundtrips correctly."""

Callers

nothing calls this directly

Calls 1

_roundtripFunction · 0.85

Tested by

no test coverage detected