Skip to content

Commit fae8c3e

Browse files
committed
fix tests
1 parent 4f6ea1b commit fae8c3e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/order.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222
@test 2 <ₑ a
2323
@test a <ₑ b
2424
@test istotal(a, 2a)
25-
@test 2a <a
25+
@test a <2a
2626
@test istotal(b*a, a)
2727
@test a <ₑ b*a
2828
@test !(b*a <ₑ b+a)
@@ -44,7 +44,8 @@ end
4444
@test !(f(2, b) <f(1, b))
4545
@test istotal(f(1, b), f(2, b))
4646
@test istotal(f(2, b), f(1, b))
47-
@test !(b <f(2,b))
47+
@test b <f(2,b) && !(f(2,b) <ₑ b)
48+
4849
for j in i+1:length(fs)
4950
g = fs[j]
5051
@test g(a, b) <f(a, b) && !(f(a, b) <g(a, b))
@@ -65,7 +66,7 @@ end
6566
end
6667

6768
@testset "Sym vs Term" begin
68-
@syms x
69+
@syms x y
6970

7071
@test x <ₑ (3 + x) && !((3 + x) <ₑ x)
7172
@test x^2 <ₑ y && !(y <ₑ x^2)

0 commit comments

Comments
 (0)