deno.land / x / masx200_leetcode_test@10.6.5 / html-entity-parser / test.ts
1234567891011121314151617181920212223242526272829303132import { assertEquals } from "../deps.ts";import html_Entity_Parser from "./index.ts";
Deno.test("html-entity-parser", () => { const testData: { input: string; output: string }[] = [ { input: "& is an HTML entity but &ambassador; is not.", output: "& is an HTML entity but &ambassador; is not.", }, { input: "and I quote: "..."", output: 'and I quote: "..."', }, { input: "Stay home! Practice on Leetcode :)", output: "Stay home! Practice on Leetcode :)", }, { input: "x > y && x < y is always false", output: "x > y && x < y is always false", }, { input: "leetcode.com⁄problemset⁄all", output: "leetcode.com/problemset/all", }, ];
testData.forEach(function ({ input, output }) { assertEquals(html_Entity_Parser(input), output); });});
Version Info