deno.land / x / masx200_leetcode_test@10.6.5 / subtract-the-product-and-sum-of-digits-of-an-integer / test.ts
1234567891011import { assertEquals } from "https://deno.land/std@0.157.0/testing/asserts.ts";
import subtractProductAndSum from "./index.ts";
Deno.test("subtract-the-product-and-sum-of-digits-of-an-integer", () => { assertEquals( [234, 4421, 1, 2222, 100000, 48264].map(subtractProductAndSum), [15, 21, 0, 8, -1, 1512], );});
Version Info