예제 #1
0
 static bool testRPNCalculation()
 {
     try
     {
         RPNParser parser = new RPNParser();
         double    result = parser.CalculateRPN("7 9 * 2,1 9 * + 5 8 7 * 9 3 / - * + ");
         if (result == 346.9)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch
     {
         return(false);
     }
 }