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

Method test_hash

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

Source from the content-addressed store, hash-verified

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))
36 assert hash(RArray(bool_rprimitive, 5)) == hash(RArray(bool_rprimitive, 5))
37
38 def test_alignment(self) -> None:
39 a = RArray(int_rprimitive, 10)

Callers

nothing calls this directly

Calls 2

RArrayClass · 0.90
hashFunction · 0.85

Tested by

no test coverage detected