Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TorkelE committed Jul 14, 2024
1 parent ea9aae3 commit 7084133
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/dsl/dsl_advanced_model_construction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ let
end
# Line number nodes aren't ignored so have to be manually removed
Base.remove_linenums!(ex)
@test eval(Catalyst.make_reaction_system(ex, :name)) isa ReactionSystem
@test eval(Catalyst.make_reaction_system(ex, name = QuoteNode(:name))) isa ReactionSystem
end

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

# Checks that repeated metadata throws errors.
let
@test_throws LoadError @eval @reaction k, 0 --> X, [md1=1.0, md1=2.0]
@test_throws LoadError @eval @reaction_network begin
@test_throws Exception @eval @reaction k, 0 --> X, [md1=1.0, md1=2.0]
@test_throws Exception @eval @reaction_network begin
k, 0 --> X, [md1=1.0, md1=1.0]
end
end
Expand Down

0 comments on commit 7084133

Please sign in to comment.