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

Function test_repr_array_single

tests/python/test_dataclass_repr.py:74–76  ·  view source on GitHub ↗

Test repr of single-element Array has trailing comma.

()

Source from the content-addressed store, hash-verified

72
73
74def test_repr_array_single() -> None:
75 """Test repr of single-element Array has trailing comma."""
76 assert ReprPrint(tvm_ffi.Array([42])) == "(42,)"
77
78
79def test_repr_array_empty() -> None:

Callers

nothing calls this directly

Calls 2

ReprPrintFunction · 0.90
ArrayMethod · 0.80

Tested by

no test coverage detected