Skip to content

Commit

Permalink
Fix CSE tests due to new DAG implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenszhu committed Jan 9, 2025
1 parent 5f1f8ff commit b38a2a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/cse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ using SymbolicUtils.Code: topological_sort
t = cse(hypot(hypot(cos(x), sin(x)), atan(cos(x), sin(x))))

@test t isa Let
@test length(t.pairs) == 2
@test occursin(t.pairs[1].lhs, t.body)
@test occursin(t.pairs[2].lhs, t.body)
@test length(t.pairs) == 4
@test occursin(t.pairs[3].lhs, t.body)
@test occursin(t.pairs[4].lhs, t.body)
end

@testset "DAG CSE" begin
Expand Down

0 comments on commit b38a2a6

Please sign in to comment.