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

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { assertEquals } from "../deps.ts";import singleNumber from "./index.ts";
Deno.test("shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-ii-lcof", () => { const data = [ { input: [3, 4, 3, 3], output: 4, }, { input: [9, 1, 7, 9, 7, 9, 7], output: 1, }, ];
for (let i = 0; i < data.length; i++) { const temp = data[i]; const output = temp.output; const input = temp.input; const res = singleNumber(input); assertEquals(res, output); }});
masx200_leetcode_test

Version Info

Tagged at
a year ago