1
Vote

1 + 1 * (= results in infinite loop

description

using (CalculationContext context = new CalculationContext())
        {
            context.Analyze("1 + 1 * (=");
            CalculationEngine ce = new CalculationEngine(context);
            ce.Run();
            Assert.AreEqual(1, context.ANS);
        }
This code results in a infinite loop instead of returning an error.

comments