Skip to content

Commit 50fcaf7

Browse files
committed
Update ordering tests
1 parent 595b743 commit 50fcaf7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/order.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ end
2727
@test istotal(b*a, a)
2828
@test istotal(a, b*a)
2929
@test !(b*a <ₑ b+a)
30-
@test Term(^, [1,-1]) <ₑ a
30+
@test a <Term(^, [1,-1])
3131
@test istotal(a, Term(^, [1,-1]))
3232

3333
@testset "operator order" begin
@@ -57,8 +57,7 @@ end
5757
@testset "callable variable order" begin
5858
@syms z() ρ()
5959

60-
@test -1z() <ρ()
61-
@test !(ρ() <-1z())
60+
@test istotal(ρ(), -1z())
6261

6362
@syms a(t) b(t) t
6463
@test a(t) <b(t)
@@ -73,7 +72,7 @@ end
7372
@syms x y
7473

7574
@test x <ₑ (3 + x) && !((3 + x) <ₑ x)
76-
@test x^2 <ₑ y && !(y < x^2)
75+
@test istotal(y, x^2)
7776

7877
# a nice consequence
7978
@test simplify(x/(x+3) + 3/(x+3)) == 1

0 commit comments

Comments
 (0)