Skip to content

Commit df73c28

Browse files
committed
Create test.ts
1 parent 33c4c16 commit df73c28

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

er-cha-shu-ran-se-UGC/test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts";
2+
import maxValue from "./index.ts";
3+
import { TreeNodeLeetCodeFromJSON } from "../utils/TreeNodeLeetCodeParse.ts";
4+
Deno.test("er-cha-shu-ran-se-UGC", () => {
5+
assertEquals(12, maxValue(TreeNodeLeetCodeFromJSON([5, 2, 3, 4]), 2));
6+
assertEquals(
7+
16,
8+
maxValue(TreeNodeLeetCodeFromJSON([4, 1, 3, 9, null, null, 2]), 2)
9+
);
10+
});

0 commit comments

Comments
 (0)