Problem: In the evaluation of the postfix representation, the stack was
popped in the wrong order for the lhs and rhs operands. So the result
was wrong for non-commutative operators.
Solution: Popped the stack in the correct order.
Testing: Corrected unit tests that failed to catch the bug.
Signed-off-by: Yusik Kim kmyusk@gmail.com
Problem: In the evaluation of the postfix representation, the stack was popped in the wrong order for the lhs and rhs operands. So the result was wrong for non-commutative operators.
Solution: Popped the stack in the correct order.
Testing: Corrected unit tests that failed to catch the bug. Signed-off-by: Yusik Kim kmyusk@gmail.com