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

Class Ord

tests/python/test_dataclass_py_class.py:627–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

test_order_enabledMethod · 0.85

Implementers 2

string.rsrust/tvm-ffi/src/string.rs
shape.rsrust/tvm-ffi/src/collections/shape.rs

Calls

no outgoing calls

Tested by 1

test_order_enabledMethod · 0.68