deno.land / x / masx200_leetcode_test@10.6.5 / shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-lcof / test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { 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)), );});
masx200_leetcode_test

Version Info

Tagged at
a year ago