Skip to content

Commit 5dbb72a

Browse files
committed
updated test file
1 parent a9670c4 commit 5dbb72a

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

test/network_analysis/network_properties.jl

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,18 +232,17 @@ end
232232
let
233233
rn = @reaction_network begin
234234
(k2, k1), A <--> 2B
235-
(k4, k3), A + C --> D
235+
(k4, k3), A + C <--> D
236236
k5, D --> B + E
237237
k6, B + E --> A + C
238238
end
239239
rev = false
240240
weak_rev = true
241241
testreversibility(rn, reactioncomplexes(rn)[2], rev, weak_rev)
242242

243-
# Breaks when a reaction has multiple rates
244243
k = rand(rng, numparams(rn))
245244
rates = Dict(zip(reactionparams(rn), k))
246-
# @test Catalyst.iscomplexbalanced(rn, rates) == true
245+
@test Catalyst.iscomplexbalanced(rn, rates) == true
247246
end
248247
let
249248
rn = @reaction_network begin
@@ -310,4 +309,20 @@ let
310309
k = rand(rng, numparams(rn))
311310
rates = Dict(zip(reactionparams(rn), k))
312311
@test Catalyst.iscomplexbalanced(rn, rates) == false
313-
end
312+
end
313+
314+
let
315+
rn = @reaction_network begin
316+
k1, 3A + 2B --> 3C
317+
k2, B + 4D --> 2E
318+
k3, 2E --> 3C
319+
(k4, k5), B + 4D <--> 3A + 2B
320+
k6, F --> B + 4D
321+
k7, 3C --> F
322+
end
323+
324+
k = rand(rng, numparams(rn))
325+
rates = Dict(zip(reactionparams(rn), k))
326+
@test Catalyst.iscomplexbalanced(rn, rates) == true
327+
end
328+

0 commit comments

Comments
 (0)