Skip to content

Commit 7084133

Browse files
committed
test fixes
1 parent ea9aae3 commit 7084133

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/dsl/dsl_advanced_model_construction.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ let
131131
end
132132
# Line number nodes aren't ignored so have to be manually removed
133133
Base.remove_linenums!(ex)
134-
@test eval(Catalyst.make_reaction_system(ex, :name)) isa ReactionSystem
134+
@test eval(Catalyst.make_reaction_system(ex, name = QuoteNode(:name))) isa ReactionSystem
135135
end
136136

137137
# Miscellaneous interpolation tests. Unsure what they do here (not related to DSL).
@@ -212,8 +212,8 @@ end
212212

213213
# Checks that repeated metadata throws errors.
214214
let
215-
@test_throws LoadError @eval @reaction k, 0 --> X, [md1=1.0, md1=2.0]
216-
@test_throws LoadError @eval @reaction_network begin
215+
@test_throws Exception @eval @reaction k, 0 --> X, [md1=1.0, md1=2.0]
216+
@test_throws Exception @eval @reaction_network begin
217217
k, 0 --> X, [md1=1.0, md1=1.0]
218218
end
219219
end

0 commit comments

Comments
 (0)