Skip to content

Commit b38a2a6

Browse files
committed
Fix CSE tests due to new DAG implementation
1 parent 5f1f8ff commit b38a2a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/cse.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ using SymbolicUtils.Code: topological_sort
66
t = cse(hypot(hypot(cos(x), sin(x)), atan(cos(x), sin(x))))
77

88
@test t isa Let
9-
@test length(t.pairs) == 2
10-
@test occursin(t.pairs[1].lhs, t.body)
11-
@test occursin(t.pairs[2].lhs, t.body)
9+
@test length(t.pairs) == 4
10+
@test occursin(t.pairs[3].lhs, t.body)
11+
@test occursin(t.pairs[4].lhs, t.body)
1212
end
1313

1414
@testset "DAG CSE" begin

0 commit comments

Comments
 (0)