deno.land / x / masx200_leetcode_test@10.6.5 / network-delay-time / test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { assertEquals } from "https://deno.land/std@0.157.0/testing/asserts.ts";import networkDelayTime from "./index.ts";Deno.test("network-delay-time", () => { const inputs = [ [[[2, 1, 1], [2, 3, 1], [3, 4, 1]], 4, 2], [[[1, 2, 1]], 2, 1], [[[1, 2, 1]], 2, 2], ]; const outputs = [2, 1, -1]; assertEquals( inputs.map((a) => Reflect.apply(networkDelayTime, null, a)), outputs, );});
masx200_leetcode_test

Version Info

Tagged at
a year ago