Skip to content

Commit 62802eb

Browse files
committed
add Catalyst.has_noise_scaling test
1 parent 36ad7dd commit 62802eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/reactionsystem_structure/reactions.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ let
7474
@test isequal(Catalyst.getmetadata(r, :md_6), (0.1, 2.0))
7575
end
7676

77-
# tests the noise scaling metadata.
77+
# Tests the noise scaling metadata.
7878
let
7979
@variables t
8080
@parameters k η
@@ -85,6 +85,8 @@ let
8585
r1 = Reaction(k, [X], [X2], [2], [1])
8686
r2 = Reaction(k, [X], [X2], [2], [1]; metadata=metadata)
8787

88+
@test !Catalyst.has_noise_scaling(r1)
89+
@test Catalyst.has_noise_scaling(r2)
8890
@test_throws Exception Catalyst.get_noise_scaling(r1)
8991
@test isequal(Catalyst.get_noise_scaling(r2), η)
9092
end

0 commit comments

Comments
 (0)