Skip to content

Commit 56be8ce

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

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

test/spatial_modelling/lattice_reaction_systems.jl

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,23 @@ end
218218
# The second argument must be a vector of AbstractSpatialReaction subtypes.
219219
let
220220
rs = @reaction_network begin
221-
(p,d), 0 <--> X
221+
@species X(t) [description="Species with added metadata"]
222+
(p, d), 0 <--> X
222223
end
223224

224225
# Define an invalid spatial reaction type (not a subtype of AbstractSpatialReaction)
225226
struct InvalidSpatialReaction end
226227

227228
# Attempt to create the LatticeReactionSystem with InvalidSpatialReaction
228-
lattice = CartesianGrid((5,5))
229-
@test_throws ArgumentError LatticeReactionSystem(rs, [InvalidSpatialReaction()], lattice)
229+
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)
237+
end
230238
end
231239

232240
# Tests various networks with non-permitted content.

0 commit comments

Comments
 (0)