Skip to content

Commit 1d3d3e6

Browse files
YingboMashashi
authored andcommitted
Update tests
1 parent c10f540 commit 1d3d3e6

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
@@ -5,15 +5,15 @@ SymbolicUtils.show_simplified[] = false
55

66
@syms a b c
77

8-
function istotal(x,y)
8+
function istotal(x, y)
99
#either
1010
if x <ₑ y
1111
return !(y <ₑ x)
1212
elseif y <ₑ x
1313
return !(x <ₑ y) # already tested
1414
else
1515
# neither, equal
16-
return true
16+
return isequal(x, y)
1717
end
1818
end
1919

@@ -81,8 +81,7 @@ end
8181
@testset "small terms" begin
8282
# this failing was a cause of a nasty stackoverflow #82
8383
@syms a
84-
@test Term(^, [a, -1]) <ₑ (a + 2)
85-
@test !((a + 2) <Term(^, [a, -1]))
84+
istotal(Term(^, [a, -1]), (a + 2))
8685
end
8786

8887
@testset "transitivity" begin

0 commit comments

Comments
 (0)