Added test package in nix flake to automatically run tests.

To be able to do such, it was required to add the vendor directory
to the git project.
This commit is contained in:
didier amyot committed 2023-06-10 09:33:04 -04:00
1 parent 459dc26b4f
commit 1f2ea8b7e5
15 files changed
+2619

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import { init } from "./base.ts";
const lookup: string[] = [];
const revLookup: number[] = [];
const code: string =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
for (let i: number = 0, l = code.length; i < l; ++i) {
lookup[i] = code[i];
revLookup[code.charCodeAt(i)] = i;
}
export const { byteLength, toUint8Array, fromUint8Array } = init(
lookup,
revLookup,
true,
);