Files
micropython/tests/ports/unix/ffi_int_long64.py.exp
Michael Sawyer 230e521515 tests/ports/unix: Update and extend the modffi integer tests.
Added the "long" modffi tests. The tests could not be added to the existing
ffi_types test because two .exp files were required for the 32-bit and
64-bit results. Code common to both the ffi_types and type "long" tests was
factored into ffi_int_base. ffi_types was renamed to ffi_int_types to group
the related tests under the "ffi_int" prefix.

Signed-off-by: Michael Sawyer <mjfsawyer@gmail.com>
2024-09-19 15:00:17 +10:00

35 lines
761 B
Plaintext

fli(0) = 1
fli(7f) = 7e
fli(80) = 81
fli(ff) = fe
fli(100) = 101
fli(7fff) = 7ffe
fli(8000) = 8001
fli(ffff) = fffe
fli(10000) = 10001
fli(7fffffff) = 7ffffffe
fli(80000000) = 80000001
fli(ffffffff) = fffffffe
fli(100000000) = 100000001
fli(7fffffffffffffff) = 7ffffffffffffffe
fli(8000000000000000) = -7fffffffffffffff
fli(ffffffffffffffff) = -2
fli(10000000000000000) = 1
flu(0) = 1
flu(7f) = 7e
flu(80) = 81
flu(ff) = fe
flu(100) = 101
flu(7fff) = 7ffe
flu(8000) = 8001
flu(ffff) = fffe
flu(10000) = 10001
flu(7fffffff) = 7ffffffe
flu(80000000) = 80000001
flu(ffffffff) = fffffffe
flu(100000000) = 100000001
flu(7fffffffffffffff) = 7ffffffffffffffe
flu(8000000000000000) = 8000000000000001
flu(ffffffffffffffff) = fffffffffffffffe
flu(10000000000000000) = 1