-- Test pickle.pack()
pickle = require('pickle')

pickle.pack()
pickle.pack(1)
pickle.pack('abc')
pickle.pack('a', ' - hello')
pickle.pack('Aa', ' - hello', ' world')
pickle.pack('s', 0x4d)
pickle.pack('ssss', 25940, 29811, 28448, 11883)
pickle.pack('SSSS', 25940, 29811, 28448, 11883)
pickle.pack('SSSSSSSS', 28493, 29550, 27680, 27497, 29541, 20512, 29285, 8556)
pickle.pack('bsil', 84, 29541, 1802444916, 2338318684567380014ULL)
pickle.unpack('b', 'T')
pickle.unpack('s', 'Te')
pickle.unpack('i', 'Test')
pickle.unpack('l', 'Test ok.')
pickle.unpack('bsil', pickle.pack('bsil', 255, 65535, 4294967295, tonumber64('18446744073709551615')))
pickle.unpack('','')
pickle.unpack('ii', pickle.pack('i', 1))
pickle.unpack('i', pickle.pack('ii', 1, 1))
