MCPcopy Index your code
hub / github.com/python/mypy / test_str_conversion

Method test_str_conversion

mypyc/test/test_rarray.py:23–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21 assert a.length == 10
22
23 def test_str_conversion(self) -> None:
24 a = RArray(int_rprimitive, 10)
25 assert str(a) == "int[10]"
26 assert repr(a) == "<RArray <RPrimitive builtins.int>[10]>"
27
28 def test_eq(self) -> None:
29 a = RArray(int_rprimitive, 10)

Callers

nothing calls this directly

Calls 3

RArrayClass · 0.90
strClass · 0.85
reprFunction · 0.85

Tested by

no test coverage detected