Esempio n. 1
0
        public void MediumTest()
        {
            string       mathExpression   = "(ctg(pi/4)+3%2)^(sqrt(100/10/2+-1))";
            List <Token> tokensExpression = StringConverter.ConvertToTokensExpression(mathExpression);
            double       actual           = Calculator.CalculateExpression(tokensExpression);

            double expected = 4;

            Assert.AreEqual(expected, actual);
        }