Skip to content

Commit 1cfae16

Browse files
test: uncomment test of CSE with arrayops
1 parent 5f51b84 commit 1cfae16

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Diff for: Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ StaticArraysCore = "1.4"
9494
SymPy = "2.2"
9595
SymbolicIndexingInterface = "0.3.14"
9696
SymbolicLimits = "0.2.2"
97-
SymbolicUtils = "3.10"
97+
SymbolicUtils = "3.14"
9898
TermInterface = "2"
9999
julia = "1.10"
100100

Diff for: test/build_function.jl

+8-8
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,14 @@ end
302302
end
303303
end
304304

305-
# @testset "cse with arrayops" begin
306-
# @variables x[1:3] y f(..)
307-
# t = x .+ y
308-
# t = t .* f(t)
309-
# res = cse(value(t))
310-
# @test res isa Let
311-
# @test !isempty(res.pairs)
312-
# end
305+
@testset "cse with arrayops" begin
306+
@variables x[1:3] y f(..)
307+
t = x .+ y
308+
t = t .* f(t)
309+
res = cse(value(t))
310+
@test res isa Let
311+
@test !isempty(res.pairs)
312+
end
313313

314314
@testset "`CallWithMetadata` in `DestructuredArgs` with `create_bindings = false`" begin
315315
@variables x f(..)

0 commit comments

Comments
 (0)