Example #1
0
        public void Test_Example2()
        {
            var solution = new EvalRPNSolution();

            Assert.AreEqual(6, solution.EvalRPN(new[] { "4", "13", "5", "/", "+" }));
        }
Example #2
0
        public void Test_Example3()
        {
            var solution = new EvalRPNSolution();

            Assert.AreEqual(22, solution.EvalRPN(new[] { "10", "6", "9", "3", "+", "-11", "*", "/", "*", "17", "+", "5", "+" }));
        }
Example #3
0
        public void Test_Example1()
        {
            var solution = new EvalRPNSolution();

            Assert.AreEqual(9, solution.EvalRPN(new[] { "2", "1", "+", "3", "*" }));
        }