-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0.test.ts
49 lines (49 loc) · 1.22 KB
/
0.test.ts
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { FNV0 } from "./0.ts";
Deno.test("Stream 1 32", {
permissions: {
read: true
}
}, async () => {
using file = await Deno.open("./README.md");
console.log((await FNV0.fromStream(32, file.readable)).hashHexPadding());
});
Deno.test("Stream 1 64", {
permissions: {
read: true
}
}, async () => {
using file = await Deno.open("./README.md");
console.log((await FNV0.fromStream(64, file.readable)).hashHexPadding());
});
Deno.test("Stream 1 128", {
permissions: {
read: true
}
}, async () => {
using file = await Deno.open("./README.md");
console.log((await FNV0.fromStream(128, file.readable)).hashHexPadding());
});
Deno.test("Stream 1 256", {
permissions: {
read: true
}
}, async () => {
using file = await Deno.open("./README.md");
console.log((await FNV0.fromStream(256, file.readable)).hashHexPadding());
});
Deno.test("Stream 1 512", {
permissions: {
read: true
}
}, async () => {
using file = await Deno.open("./README.md");
console.log((await FNV0.fromStream(512, file.readable)).hashHexPadding());
});
Deno.test("Stream 1 1024", {
permissions: {
read: true
}
}, async () => {
using file = await Deno.open("./README.md");
console.log((await FNV0.fromStream(1024, file.readable)).hashHexPadding());
});