Files
DefinitelyTyped/murmurhash-js/murmurhash-js-tests.ts
2016-10-23 21:08:01 +07:00

22 lines
546 B
TypeScript

import * as murmur from 'murmurhash-js';
import * as murmur2 from 'murmurhash-js/murmurhash2_gc';
import * as murmur3 from 'murmurhash-js/murmurhash3_gc';
let hash: number;
hash = murmur('string');
hash = murmur('string with seed', 1337);
hash = murmur.murmur2('string');
hash = murmur.murmur2('string with seed', 1337);
hash = murmur.murmur3('string');
hash = murmur.murmur3('string with seed', 1337);
hash = murmur2('string');
hash = murmur2('string with seed', 1337);
hash = murmur3('string');
hash = murmur3('string with seed', 1337);