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

Method test_long_signed

mypyc/test/test_emitfunc.py:809–816  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

807 )
808
809 def test_long_signed(self) -> None:
810 a = Register(int64_rprimitive, "a")
811 self.assert_emit(
812 Assign(a, Integer(-(1 << 31) + 1, int64_rprimitive)), """cpy_r_a = -2147483647;"""
813 )
814 self.assert_emit(
815 Assign(a, Integer(-(1 << 31), int64_rprimitive)), """cpy_r_a = -2147483648LL;"""
816 )
817
818 def test_cast_and_branch_merge(self) -> None:
819 op = Cast(self.r, dict_rprimitive, 1)

Callers

nothing calls this directly

Calls 4

assert_emitMethod · 0.95
RegisterClass · 0.90
AssignClass · 0.90
IntegerClass · 0.90

Tested by

no test coverage detected