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

Method test_order_enabled

tests/python/test_dataclass_py_class.py:625–633  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

623 """Comparison methods."""
624
625 def test_order_enabled(self) -> None:
626 @py_class(_unique_key("Ord"), eq=True, order=True)
627 class Ord(Object):
628 x: int
629
630 assert Ord(x=1) < Ord(x=2)
631 assert Ord(x=2) > Ord(x=1)
632 assert Ord(x=1) <= Ord(x=1)
633 assert Ord(x=1) >= Ord(x=1)
634
635
636# ###########################################################################

Callers

nothing calls this directly

Calls 1

OrdClass · 0.85

Tested by

no test coverage detected