Skip to content

Commit 0219738

Browse files
test: assert FieldError for absent system fields
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
1 parent 83168f3 commit 0219738

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/ModelingToolkitBase/test/abstractsystem_interface.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ end
8484
@test isequal(MT.get_iv(leaf), t)
8585

8686
# `get_x` on absent storage throws, so generic code has to guard it with `has_x`.
87-
@test_throws ErrorException MT.get_eqs(minimal)
88-
@test_throws ErrorException MT.get_unknowns(minimal)
89-
@test_throws ErrorException MT.get_ps(minimal)
87+
@test_throws FieldError MT.get_eqs(minimal)
88+
@test_throws FieldError MT.get_unknowns(minimal)
89+
@test_throws FieldError MT.get_ps(minimal)
9090

9191
# The event accessors are the documented exceptions: they default to empty.
9292
@test MT.has_continuous_events(minimal) == false

0 commit comments

Comments
 (0)