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

Method test_eq

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

Source from the content-addressed store, hash-verified

26 assert repr(a) == "<RArray <RPrimitive builtins.int>[10]>"
27
28 def test_eq(self) -> None:
29 a = RArray(int_rprimitive, 10)
30 assert a == RArray(int_rprimitive, 10)
31 assert a != RArray(bool_rprimitive, 10)
32 assert a != RArray(int_rprimitive, 9)
33
34 def test_hash(self) -> None:
35 assert hash(RArray(int_rprimitive, 10)) == hash(RArray(int_rprimitive, 10))

Callers

nothing calls this directly

Calls 1

RArrayClass · 0.90

Tested by

no test coverage detected