Skip to content

Commit 831f34d

Browse files
test: add broken test involving scalar-valued arrayops
This needs to be fixed by Symbolics
1 parent 404b955 commit 831f34d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/odesystem.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,3 +1022,11 @@ prob2 = @test_nowarn ODEProblem(sys, [x => ones(3)], (0.0, 10.0), [p => ones(3,
10221022
sol2 = @test_nowarn solve(prob, Tsit5())
10231023

10241024
@test sol1 sol2
1025+
1026+
# Requires fix in symbolics for `linear_expansion(p * x, D(y))`
1027+
@test_broken begin
1028+
@variables x(t)[1:3] y(t)
1029+
@parameters p[1:3, 1:3]
1030+
@test_nowarn @mtkbuild sys = ODESystem([D(x) ~ p * x, D(y) ~ x' * p * x], t)
1031+
@test_nowarn ODEProblem(sys, [x => ones(3), y => 2], (0.0, 10.0), [p => ones(3, 3)])
1032+
end

0 commit comments

Comments
 (0)