deno.land / x / masx200_leetcode_test@10.6.5 / search-in-rotated-sorted-array-ii / test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { assertEquals } from "https://deno.land/std@0.157.0/testing/asserts.ts";
import search from "./index.ts";
Deno.test("search-in-rotated-sorted-array-ii", () => { const inputs = [ [[2, 5, 6, 0, 0, 1, 2], 0], [[2, 5, 6, 0, 0, 1, 2], 3], [[3, 1, 2, 3, 3, 3, 3], 2], ] as Array<[nums: number[], target: number]>; const outputs = [true, false, true]; assertEquals( outputs, inputs.map(([nums, target]) => search(nums, target)), );});
masx200_leetcode_test

Version Info

Tagged at
a year ago