Files
DefinitelyTyped/types/murmurhash-js/murmurhash-js-tests.ts
2017-03-24 14:27:52 -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);