deno.land / x / masx200_leetcode_test@10.6.5 / first-letter-to-appear-twice / test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
import { assertEquals } from "https://deno.land/std@0.157.0/testing/asserts.ts";
import repeatedCharacter from "./index.ts";
Deno.test("first-letter-to-appear-twice", () => { const inputs = ["abccbaacz", "abcdd", "yyabccbaacz", "yyabcdd"]; const outputs = ["c", "d", "y", "y"]; assertEquals(outputs, inputs.map(repeatedCharacter));});
masx200_leetcode_test

Version Info

Tagged at
a year ago