2015-09-01 16:25:29 +01:00
|
|
|
# test array('q') and array('Q')
|
|
|
|
|
2017-01-06 22:13:40 +00:00
|
|
|
try:
|
|
|
|
from array import array
|
|
|
|
except ImportError:
|
|
|
|
import sys
|
|
|
|
print("SKIP")
|
|
|
|
sys.exit()
|
2015-09-01 16:25:29 +01: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])))
|