deno.land / x / masx200_leetcode_test@10.6.5 / evaluate-reverse-polish-notation / test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { assertEquals } from "https://deno.land/std@0.157.0/testing/asserts.ts";
import evalRPN from "./index.ts";
Deno.test("evaluate-reverse-polish-notation", () => { assertEquals( [ ["2", "1", "+", "3", "*"], ["4", "13", "5", "/", "+"], [ "10", "6", "9", "3", "+", "-11", "*", "/", "*", "17", "+", "5", "+", ], ["3", "4", "+", "2", "*", "7", "/"], ["4", "5", "7", "2", "+", "-", "*"], ["4", "2", "+", "3", "5", "1", "-", "*", "+"], ["100", "200", "+", "2", "/", "5", "*", "7", "+"], ].map(evalRPN), [9, 6, 22, 2, -16, 18, 757], );});
masx200_leetcode_test

Version Info

Tagged at
a year ago