@@ -1028,64 +1028,64 @@ end
1028
1028
import Catalyst: UndeclaredSymbolicError
1029
1029
let
1030
1030
# Test error when species are inferred
1031
- @test_throws UndeclaredSymbolicError @macroexpand rn = @reaction_network begin
1031
+ @test_throws UndeclaredSymbolicError @macroexpand @reaction_network begin
1032
1032
@require_declaration
1033
1033
@parameters k
1034
1034
k, A --> B
1035
1035
end
1036
- @test_nowarn @macroexpand rn = @reaction_network begin
1036
+ @test_nowarn @macroexpand @reaction_network begin
1037
1037
@require_declaration
1038
1038
@species A (t) B (t)
1039
1039
@parameters k
1040
1040
k, A --> B
1041
1041
end
1042
1042
1043
1043
# 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
1045
1045
@require_declaration
1046
1046
@species A (t) B (t)
1047
1047
@parameters k
1048
1048
k* n, A --> B
1049
1049
end
1050
- @test_nowarn @macroexpand rn = @reaction_network begin
1050
+ @test_nowarn @macroexpand @reaction_network begin
1051
1051
@require_declaration
1052
1052
@parameters n k
1053
1053
@species A (t) B (t)
1054
1054
k* n, A --> B
1055
1055
end
1056
1056
1057
1057
# 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
1059
1059
@require_declaration
1060
1060
@parameters k
1061
1061
@species A (t) B (t)
1062
1062
k, n* A --> B
1063
1063
end
1064
- @test_nowarn @macroexpand rn = @reaction_network begin
1064
+ @test_nowarn @macroexpand @reaction_network begin
1065
1065
@require_declaration
1066
1066
@parameters k n
1067
1067
@species A (t) B (t)
1068
1068
k, n* A --> B
1069
1069
end
1070
1070
1071
1071
# 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
1073
1073
@require_declaration
1074
1074
@equations D (V) ~ V^ 2
1075
1075
end
1076
- @test_nowarn @macroexpand rn = @reaction_network begin
1076
+ @test_nowarn @macroexpand @reaction_network begin
1077
1077
@require_declaration
1078
1078
@variables V (t)
1079
1079
@equations D (V) ~ V^ 2
1080
1080
end
1081
1081
1082
1082
# 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
1084
1084
@require_declaration
1085
1085
@variables X1 (t)
1086
1086
@observables X2 ~ X1
1087
1087
end
1088
- @test_nowarn @macroexpand rn = @reaction_network begin
1088
+ @test_nowarn @macroexpand @reaction_network begin
1089
1089
@require_declaration
1090
1090
@variables X1 (t) X2 (t)
1091
1091
@observables X2 ~ X1
0 commit comments