deno.land / x / masx200_leetcode_test@10.6.5 / partition-list-lcci / test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { assertEquals } from "../deps.ts";import { ArrayToListNode } from "../reverse-linked-list/ArrayToListNode.ts";import { ListNode } from "../reverse-linked-list/ListNode.ts";import partition from "./index.ts";
Deno.test("partition-list-lcci", () => { assertEquals(partition(null, 0), null); assertEquals( partition(ArrayToListNode([1, 4, 3, 2, 5, 2]), 3), ArrayToListNode([1, 2, 2, 4, 3, 5]), ); assertEquals( partition(new ListNode(2, new ListNode(1)), 2), new ListNode(1, new ListNode(2)), );});
masx200_leetcode_test

Version Info

Tagged at
a year ago