Skip to content

Commit

Permalink
commented tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vyudu committed Jun 25, 2024
1 parent 9b868d0 commit 2728402
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/network_analysis/network_properties.jl
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ end

### STRONG LINKAGE CLASS TESTS


# a) Checks that strong/terminal linkage classes are correctly found. Should identify the (A, B+C) linkage class as non-terminal, since B + C produces D
let
rn = @reaction_network begin
(k1, k2), A <--> B + C
Expand All @@ -347,6 +349,7 @@ let
@test issubset([[3,4,5], [6,7]], tslcs)
end

# b) Makes the D + E --> G reaction irreversible. Thus, (D+E) becomes a non-terminal linkage class. Checks whether correctly identifies both (A, B+C) and (D+E) as non-terminal
let
rn = @reaction_network begin
(k1, k2), A <--> B + C
Expand All @@ -366,6 +369,7 @@ let
@test issubset([[3,4,5], [7]], tslcs)
end

# From a), makes the B + C <--> D reaction reversible. Thus, the non-terminal (A, B+C) linkage class gets absorbed into the terminal (A, B+C, D, E, 2F) linkage class, and the terminal linkage classes and strong linkage classes coincide.
let
rn = @reaction_network begin
(k1, k2), A <--> B + C
Expand All @@ -385,6 +389,7 @@ let
@test issubset([[1,2,3,4,5], [6,7]], tslcs)
end

# Simple test for strong and terminal linkage classes
let
rn = @reaction_network begin
(k1, k2), A <--> 2B
Expand Down

0 comments on commit 2728402

Please sign in to comment.