Skip to content

Commit c710814

Browse files
committed
remove rn
1 parent fbf7a29 commit c710814

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/dsl/dsl_options.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,64 +1028,64 @@ end
10281028
import Catalyst: UndeclaredSymbolicError
10291029
let
10301030
# Test error when species are inferred
1031-
@test_throws UndeclaredSymbolicError @macroexpand rn = @reaction_network begin
1031+
@test_throws UndeclaredSymbolicError @macroexpand @reaction_network begin
10321032
@require_declaration
10331033
@parameters k
10341034
k, A --> B
10351035
end
1036-
@test_nowarn @macroexpand rn = @reaction_network begin
1036+
@test_nowarn @macroexpand @reaction_network begin
10371037
@require_declaration
10381038
@species A(t) B(t)
10391039
@parameters k
10401040
k, A --> B
10411041
end
10421042

10431043
# Test error when a parameter in rate is inferred
1044-
@test_throws UndeclaredSymbolicError @macroexpand rn = @reaction_network begin
1044+
@test_throws UndeclaredSymbolicError @macroexpand @reaction_network begin
10451045
@require_declaration
10461046
@species A(t) B(t)
10471047
@parameters k
10481048
k*n, A --> B
10491049
end
1050-
@test_nowarn @macroexpand rn = @reaction_network begin
1050+
@test_nowarn @macroexpand @reaction_network begin
10511051
@require_declaration
10521052
@parameters n k
10531053
@species A(t) B(t)
10541054
k*n, A --> B
10551055
end
10561056

10571057
# Test error when a parameter in stoichiometry is inferred
1058-
@test_throws UndeclaredSymbolicError @macroexpand rn = @reaction_network begin
1058+
@test_throws UndeclaredSymbolicError @macroexpand @reaction_network begin
10591059
@require_declaration
10601060
@parameters k
10611061
@species A(t) B(t)
10621062
k, n*A --> B
10631063
end
1064-
@test_nowarn @macroexpand rn = @reaction_network begin
1064+
@test_nowarn @macroexpand @reaction_network begin
10651065
@require_declaration
10661066
@parameters k n
10671067
@species A(t) B(t)
10681068
k, n*A --> B
10691069
end
10701070

10711071
# Test error when a variable in an equation is inferred
1072-
@test_throws UndeclaredSymbolicError @macroexpand rn = @reaction_network begin
1072+
@test_throws UndeclaredSymbolicError @macroexpand @reaction_network begin
10731073
@require_declaration
10741074
@equations D(V) ~ V^2
10751075
end
1076-
@test_nowarn @macroexpand rn = @reaction_network begin
1076+
@test_nowarn @macroexpand @reaction_network begin
10771077
@require_declaration
10781078
@variables V(t)
10791079
@equations D(V) ~ V^2
10801080
end
10811081

10821082
# Test error when a variable in an observable is inferred
1083-
@test_throws UndeclaredSymbolicError @macroexpand rn = @reaction_network begin
1083+
@test_throws UndeclaredSymbolicError @macroexpand @reaction_network begin
10841084
@require_declaration
10851085
@variables X1(t)
10861086
@observables X2 ~ X1
10871087
end
1088-
@test_nowarn @macroexpand rn = @reaction_network begin
1088+
@test_nowarn @macroexpand @reaction_network begin
10891089
@require_declaration
10901090
@variables X1(t) X2(t)
10911091
@observables X2 ~ X1

0 commit comments

Comments
 (0)