brainopia/symbolic — Issue #8: Integration Spec failing
Author: fshen
Created: 2012-02-04 04:20:30+00:00
State: open

I forked the project and I run the spec tests, and there are bunch of integration_spec tests fail:
Failures:

1) Symbolic to_s: -x-y
Failure/Error: expr.to_s.should == str
expected: "-x-y"
got: "-y-x" (using ==)
# ./spec/integration_spec.rb:162

2) Symbolic to_s: 2/(x*y)
Failure/Error: expr.to_s.should == str
expected: "2/(x*y)"
got: "2/(y*x)" (using ==)
# ./spec/integration_spec.rb:162

3) Symbolic to_s: -x*y
Failure/Error: expr.to_s.should == str
expected: "-x*y"
got: "-y*x" (using ==)
# ./spec/integration_spec.rb:162

4) Symbolic to_s: 4*(y+3)*(x+2)
Failure/Error: expr.to_s.should == str
expected: "4*(y+3)*(x+2)"
got: "4*(x+2)*(y+3)" (using ==)
# ./spec/integration_spec.rb:162

5) Symbolic to_s: -x+y
Failure/Error: expr.to_s.should == str
expected: "-x+y"
got: "y-x" (using ==)
# ./spec/integration_spec.rb:162

6) Symbolic to_s: x*y
Failure/Error: expr.to_s.should == str
expected: "x*y"
got: "y*x" (using ==)
# ./spec/integration_spec.rb:162

I will dig into the code and try to submit a patch to fix the issue.