deno.land / x / masx200_leetcode_test@10.6.5 / shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-lcof / test.ts
12345678910111213141516171819import { assertEquals } from "https://deno.land/std@0.157.0/testing/asserts.ts";
import singleNumbers from "./index.ts";
Deno.test("shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-lcof", () => { const inputs = [ [4, 1, 4, 6], [3, 2, 1, 3], ]; const outputs = [ [1, 6], [1, 2], ]; assertEquals( outputs.map((a) => new Set(a)), inputs.map(singleNumbers).map((a) => new Set(a)), );});
Version Info