-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the meaning of separateExpression
and isSeparable
?
#399
Comments
separateExpression
separateExpression
separateExpression
and isSeparable
?
We need to replace this method with an |
the form of the test is not appropriate. One should be able to express 2 different things in tests |
I refactor the test as: testSeparateABinaryExpression
| e1 e2 e3 e4 |
e1 := '-(A+B+C)*E*D' parseAsAnExpression.
e2 := '-(A+B)*(-C)' parseAsAnExpression.
e3 := '(-E)*D*F*(A+B)' parseAsAnExpression.
e4 := '(A+B)*(C+D)' parseAsAnExpression.
self assert: e1 separateExpression size equals: 3.
self assert: e2 separateExpression size equals: 2.
self assert: e3 separateExpression size equals: 2.
self assert: e4 separateExpression size equals: 4 More refactorings are needed in order to remove the use of Strings. |
The semantic of the
separateExpression
method onKEBinaryExpression
is not really clear.Tests should give the semantic more clearly and the method should be renamed appropriately.
The same for the method
isSeparable
.The text was updated successfully, but these errors were encountered: