Skip to content

Commit 7eb83f0

Browse files
committed
improve test
1 parent def3a41 commit 7eb83f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/miscellaneous_tests/nonlinear_solve.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let
1616
steady_state_network_1 = @reaction_network begin
1717
(k1, k2), ∅ X1
1818
(k3, k4), ∅ 3X2
19-
(k5, k6), ∅ X3 + X4
19+
(k5, k6*X1), ∅ X3
2020
end
2121

2222
# Creates NonlinearProblem.
@@ -31,10 +31,10 @@ let
3131
# Tests solutions are correct.
3232
@test isapprox(sol1[1], p[1] / p[2]; atol=1e-10)
3333
@test isapprox(sol1[2]^3 / factorial(3), p[3] / p[4]; atol=1e-10)
34-
@test isapprox(sol1[3] * sol1[4], p[5] / p[6]; atol=1e-10)
34+
@test isapprox(sol1[3], (p[5] * p[2]) / (p[6] * p[1]); atol=1e-10)
3535
@test isapprox(sol2[1], p[1] / p[2]; atol=1e-10)
3636
@test isapprox(sol2[2]^3 / factorial(3), p[3] / p[4]; atol=1e-10)
37-
@test isapprox(sol2[3] * sol2[4], p[5] / p[6]; atol=1e-10)
37+
@test isapprox(sol2[3], (p[5] * p[2]) / (p[6] * p[1]); atol=1e-10)
3838
end
3939

4040
# Creates a system with multiple steady states.

0 commit comments

Comments
 (0)