Skip to content

Commit 32d38dd

Browse files
committed
fix up tests
1 parent 5f113ab commit 32d38dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/basics.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ end
162162
@test repr(-(a + b)) == "-a - b"
163163
@test repr((2a)^(-2a)) == "(2a)^(-2a)"
164164
@test repr(1/2a) == "1 / (2a)"
165-
@test repr(2/(2*a)) == "2 / (2a)"
165+
@test repr(2/(2*a)) == "1 / a"
166166
@test repr(Term(*, [1, 1])) == "1"
167167
@test repr(Term(*, [2, 1])) == "2*1"
168168
@test repr((a + b) - (b + c)) == "a - c"
@@ -233,7 +233,7 @@ end
233233
@test (2x/3y).num.coeff == 2
234234
@test (2x/3y).den.coeff == 3
235235
@test (2x/-3x).num.coeff == -2
236-
@test (2x/-t3x).den.coeff == 3
236+
@test (2x/-3x).den.coeff == 3
237237
@test (2.5x/3x).num.coeff == 2.5
238238
@test (2.5x/3x).den.coeff == 3
239239
@test (x/3x).den.coeff == 3

test/polyform.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ include("utils.jl")
99
@test repr(x/y*x/z) == "(x^2) / (y*z)"
1010
@test repr(simplify_fractions(((x-y+z)*(x+4z+1)) /
1111
(y*(2x - 3y + 3z) +
12-
x*(x + z)))) == "(1 + x + 4z) / (x + 3.0y)"
12+
x*(x + z)))) == repr(simplify_fractions((1 + x + 4z) / (x + 3.0y)))
1313
@test simplify_fractions(x/(x+3) + 3/(x+3)) == 1
1414
@test repr(simplify(simplify_fractions(cos(x)/sin(x) + sin(x)/cos(x)))) == "1 / (cos(x)*sin(x))"
1515
end

0 commit comments

Comments
 (0)