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

Method test_long_unsigned

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

Source from the content-addressed store, hash-verified

798 )
799
800 def test_long_unsigned(self) -> None:
801 a = Register(int64_rprimitive, "a")
802 self.assert_emit(
803 Assign(a, Integer(1 << 31, int64_rprimitive)), """cpy_r_a = 2147483648LL;"""
804 )
805 self.assert_emit(
806 Assign(a, Integer((1 << 31) - 1, int64_rprimitive)), """cpy_r_a = 2147483647;"""
807 )
808
809 def test_long_signed(self) -> None:
810 a = Register(int64_rprimitive, "a")

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