google / mathsteps

Step by step math solutions for everyone
https://socratic.org
Apache License 2.0
2.12k stars 275 forks source link

parentheses in performTermOperationOnExpression #125

Closed rshconn closed 5 years ago

rshconn commented 7 years ago

Modified performTermOperationOnExpression to add parentheses only for /, *, and ^ operations per #115. Created new test function testPerformTermOperationExpressionStep to test the equation at a given step.

Tests cover +, -, /, and * cases: