deno.land / x / masx200_leetcode_test@10.6.5 / merge-intervals / test.ts
12345678910111213141516171819202122232425262728import { assertEquals } from "https://deno.land/std@0.157.0/testing/asserts.ts";
import merge from "./index.ts";
Deno.test("merge-intervals", () => { const inputs = [ [ [1, 3], [2, 6], [8, 10], [15, 18], ], [ [1, 4], [4, 5], ], ]; const outputs = [ [ [1, 6], [8, 10], [15, 18], ], [[1, 5]], ]; assertEquals(inputs.map((input) => merge(input)), outputs);});
Version Info