Skip to content

Commit a5c5b8f

Browse files
committed
Add test
1 parent 4ee1990 commit a5c5b8f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/reduction.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,3 +295,10 @@ eqs = [x ~ 0
295295
ss = alias_elimination(sys)
296296
@test isempty(equations(ss))
297297
@test sort(observed(ss), by = string) == ([D(x), x, y] .~ 0)
298+
299+
eqs = [D(D(x)) ~ -x]
300+
@named sys = ODESystem(eqs, t, [x], [])
301+
ss = alias_elimination(sys)
302+
@test length(equations(ss)) == length(states(ss)) == 1
303+
ss = structural_simplify(sys)
304+
@test length(equations(ss)) == length(states(ss)) == 2

0 commit comments

Comments
 (0)