For test case 9 it reads:
“The expression 5 - 9 + 5 should produce a result of 1
AssertionError: The expression 5 - 9 + 5 should produce a result of 1”
In my mind, this is immediate execution. If it were formal logic, then the equation would evaluate the 9+5
then evaluate 5-14
which would yield -9
. Am I misunderstanding this? Shouldn’t the addition operator take precedence over the subtraction operator?