chore: setup linting

This commit is contained in:
Max Richter
2026-02-02 16:22:14 +01:00
parent 137425b31b
commit 30e897468a
174 changed files with 6043 additions and 5107 deletions

View File

@@ -1,4 +1,4 @@
import { test, expect } from 'vitest';
import { expect, test } from 'vitest';
import { fastHashArrayBuffer, fastHashString } from './fastHash';
test('fastHashString doesnt produce clashes', () => {
@@ -10,8 +10,7 @@ test('fastHashString doesnt produce clashes', () => {
expect(hashB).toEqual(hashC);
});
test("fastHashArray doesnt product collisions", () => {
test('fastHashArray doesnt product collisions', () => {
const a = new Int32Array(1000);
const hash_a = fastHashArrayBuffer(a);
@@ -20,11 +19,9 @@ test("fastHashArray doesnt product collisions", () => {
const hash_b = fastHashArrayBuffer(a);
expect(hash_a).not.toEqual(hash_b);
});
test('fastHashArray is fast(ish) < 20ms', () => {
const a = new Int32Array(10_000);
const t0 = performance.now();