Skip to content

Commit ea5a003

Browse files
committed
Explicitly test that c*D(x) ~ something fails, but add TODO to fix it
1 parent aa29107 commit ea5a003

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/basic_transformations.jl

+2
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ end
148148
@test_throws "structurally simplified" change_independent_variable(structural_simplify(M), y)
149149
@test_throws "Got 0 equations:" change_independent_variable(M, w)
150150
@test_throws "Got 0 equations:" change_independent_variable(M, v)
151+
M = ODESystem([2 * D(x) ~ 1, v ~ x], t; name = :M) # TODO: allow equations like this
152+
@test_throws "Got 0 equations:" change_independent_variable(M, x)
151153
M = ODESystem([D(x) ~ 1, v ~ 1], t; name = :M)
152154
@test_throws "Got 2 equations:" change_independent_variable(M, x, [D(x) ~ 2])
153155
@test_throws "not a function of the independent variable" change_independent_variable(M, y)

0 commit comments

Comments
 (0)