2017-05-08 20:46:43 -04:00
|
|
|
# test array types QqLl that require big-ints
|
2017-07-03 18:05:08 -04:00
|
|
|
import skip_if
|
|
|
|
skip_if.no_bigint()
|
2015-09-01 11:25:29 -04:00
|
|
|
|
2017-01-06 17:13:40 -05:00
|
|
|
try:
|
2022-08-18 02:57:45 -04:00
|
|
|
from array import array
|
2017-01-06 17:13:40 -05:00
|
|
|
except ImportError:
|
2022-08-18 02:57:45 -04:00
|
|
|
print("SKIP")
|
|
|
|
raise SystemExit
|
2015-09-01 11:25:29 -04:00
|
|
|
|
2017-05-08 20:46:43 -04:00
|
|
|
print(array('L', [0, 2**32-1]))
|
|
|
|
print(array('l', [-2**31, 0, 2**31-1]))
|
|
|
|
|
2015-09-01 11:25:29 -04:00
|
|
|
print(array('q'))
|
|
|
|
print(array('Q'))
|
|
|
|
|
|
|
|
print(array('q', [0]))
|
|
|
|
print(array('Q', [0]))
|
|
|
|
|
|
|
|
print(array('q', [-2**63, -1, 0, 1, 2, 2**63-1]))
|
|
|
|
print(array('Q', [0, 1, 2, 2**64-1]))
|
|
|
|
|
|
|
|
print(bytes(array('q', [-1])))
|
|
|
|
print(bytes(array('Q', [2**64-1])))
|