js-adler32/types/adler32-test.ts

10 lines
381 B
TypeScript
Raw Permalink Normal View History

2018-01-17 19:19:26 +00:00
import { buf, bstr, str } from 'adler-32';
const t1: number = buf([1,2,3,4,5]);
const t3: number = bstr("\u0001\u0002\u0003\u0004\u0005");
const t5: number = str("\u0001\u0002\u0003\u0004\u0005");
const t2: number = buf(new Uint8Array([1,2,3,4,5]), t3);
const t4: number = bstr("\u0001\u0002\u0003\u0004\u0005", t5);
const t6: number = str("\u0001\u0002\u0003\u0004\u0005", t1);