Skip to content

Commit 00833b6

Browse files
changed to @test_throw
Signed-off-by: sivasathyaseeelan <[email protected]>
1 parent 6ba9df3 commit 00833b6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/reactionsystem_core/reactionsystem.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -625,12 +625,7 @@ let
625625
]
626626

627627
# Attempt to create a ReactionSystem and capture the error
628-
try
629-
@named rs = ReactionSystem(rxs, t)
630-
@test false # This line should not be reached
631-
catch e
632-
@test e isa Exception
633-
end
628+
@test_throws Exception @named rs = ReactionSystem(rxs, t)
634629
end
635630

636631
# Tests various erroneous `convert` calls.

0 commit comments

Comments
 (0)