tests: Add specific tests for "long long" 64-bit bigints.

These will run on all ports which support them, but importantly
they'll also run on ports that don't support arbitrary precision
but do support 64-bit long ints.

Includes some test workarounds to account for things which will overflow
once "long long" big integers overflow (added in follow-up commit):

- uctypes_array_load_store test was failing already, now won't parse.
- all the ffi_int tests contain 64-bit unsigned values, that won't parse
  as long long.

This work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
This commit is contained in:
Angus Gratton
2025-03-18 12:07:00 +11:00
committed by Damien George
parent c72a3e528d
commit 2d8d64059f
5 changed files with 149 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
# Check whether 64-bit long integers are supported
print(1 << 62)

View File

@@ -0,0 +1 @@
4611686018427387904