Update img_verify

This commit is contained in:
2023-08-07 19:28:25 +08:00
parent cd86f44cee
commit af5667f337
14 changed files with 310 additions and 90 deletions

View File

@@ -0,0 +1,11 @@
import { assertEquals } from "std/assert/mod.ts";
import { SortableURLSearchParams } from "./SortableURLSearchParams.ts";
Deno.test("SortableURLSearchParams_test", () => {
const s = new SortableURLSearchParams(undefined, ["dad"]);
s.append("a", "1");
s.append("d", "3");
s.append("b", "4");
s.append("dad", "4");
assertEquals(s.toString(), "a=1&b=4&d=3");
});