aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets/hash.test.js
blob: c907002cc397f58ab7239f3d68314e78b9991152 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import fs from "fs";
import { it, expect } from "bun:test";
import path from "path";

it(`Bun.hash()`, () => {
  console.log(Bun.hash("hello world"));
});
it(`Bun.hash.wyhash()`, () => {
  console.log(Bun.hash.wyhash("hello world"));
});
it(`Bun.hash.adler32()`, () => {
  console.log(Bun.hash.adler32("hello world"));
});
it(`Bun.hash.crc32()`, () => {
  console.log(Bun.hash.crc32("hello world"));
});
it(`Bun.hash.cityHash32()`, () => {
  console.log(Bun.hash.cityHash32("hello world"));
});
it(`Bun.hash.cityHash64()`, () => {
  console.log(Bun.hash.cityHash64("hello world"));
});
it(`Bun.hash.murmur32v3()`, () => {
  console.log(Bun.hash.murmur32v3("hello world"));
});
it(`Bun.hash.murmur64v2()`, () => {
  console.log(Bun.hash.murmur64v2("hello world"));
});