Skip to content

Commit 66db72b

Browse files
test updated
Signed-off-by: sivasathyaseeelan <[email protected]>
1 parent 56be8ce commit 66db72b

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

test/spatial_modelling/lattice_reaction_systems.jl

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -217,23 +217,13 @@ end
217217

218218
# The second argument must be a vector of AbstractSpatialReaction subtypes.
219219
let
220-
rs = @reaction_network begin
221-
@species X(t) [description="Species with added metadata"]
222-
(p, d), 0 <--> X
223-
end
224-
225220
# Define an invalid spatial reaction type (not a subtype of AbstractSpatialReaction)
226-
struct InvalidSpatialReaction end
221+
struct InvalidSpatialReactionType end
227222

228-
# Attempt to create the LatticeReactionSystem with InvalidSpatialReaction
223+
# Attempt to create the LatticeReactionSystem with InvalidSpatialReactionType
229224
for grid in grids
230-
@test_throws ArgumentError LatticeReactionSystem(rs, [InvalidSpatialReaction()], grid)
231-
232-
rs = @reaction_network begin
233-
@parameters D [description="Parameter with added metadata"]
234-
(p, d), 0 <--> X
235-
end
236-
@test_throws ArgumentError LatticeReactionSystem(rs, [InvalidSpatialReaction()], grid)
225+
@test_throws ArgumentError LatticeReactionSystem(binding_system, [], grid)
226+
@test_throws ArgumentError LatticeReactionSystem(binding_system, [InvalidSpatialReactionType()], grid)
237227
end
238228
end
239229

0 commit comments

Comments
 (0)