deno.land / x / masx200_leetcode_test@10.6.5 / add-to-array-form-of-integer / test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { assertEquals } from "https://deno.land/std@0.157.0/testing/asserts.ts";
import addToArrayForm from "./index.ts";
Deno.test("add-to-array-form-of-integer", () => { const inputs = [ [[1, 2, 0, 0], 34], [[2, 7, 4], 181], [[2, 1, 5], 806], ] as Array<Parameters<typeof addToArrayForm>>; assertEquals( [ [1, 2, 3, 4], [4, 5, 5], [1, 0, 2, 1], ], inputs.map(([A, K]) => addToArrayForm(A, K)), );});
masx200_leetcode_test

Version Info

Tagged at
a year ago