js-adler32/misc/make_unicode_adler.py
SheetJS 8215562b11 version bump 0.3.0
- AMD support (h/t @lmk123 for initially contributing to js-crc32)
- added missing bitshift (h/t @florentbr for initially contributing to js-crc32)
- flow annotaations
- updated ci node versions
2016-01-16 00:36:58 -05:00

20 lines
439 B
Python

#!/usr/bin/env python
# make_unicode_crc.py -- generate baselines for tests
# Copyright (C) 2016-present SheetJS
from zlib import adler32
from array import array
from sys import argv, stderr, exit
from importlib import import_module
args = argv[1:]
if len(args) < 1:
print >>stderr, "usage: " + argv[0] + " <category>"
exit(1)
uctable = import_module("uctable_" + args[0]).uctable
for z in uctable:
print adler32(array('B', z));