Skip to content

Commit a8d14e1

Browse files
test: update error checking tests for improved error in better_varmap_to_vars
1 parent 06fda92 commit a8d14e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/implicit_discrete_system.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ rng = StableRNG(22525)
2828
@test prob.u0 == [1.0, 1.0]
2929
@variables x(t)
3030
@mtkcompile sys = System([x(k) ~ x(k) * x(k - 1) - 3], t)
31-
@test_throws ModelingToolkit.MissingVariablesError prob=ImplicitDiscreteProblem(
31+
@test_throws ModelingToolkit.MissingGuessError prob=ImplicitDiscreteProblem(
3232
sys, [], tspan)
3333
end
3434

test/initializationsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ sys = extend(sysx, sysy)
495495
@variables x(t) y(t)
496496
@named sys = System([x^2 + y^2 ~ 25, D(x) ~ 1], t)
497497
ssys = mtkcompile(sys)
498-
@test_throws ModelingToolkit.MissingVariablesError ODEProblem(
498+
@test_throws ModelingToolkit.MissingGuessError ODEProblem(
499499
ssys, [x => 3], (0, 1)) # y should have a guess
500500
end
501501

0 commit comments

Comments
 (0)