Skip to content

Commit 56b265e

Browse files
committed
test fix
1 parent 08ccc68 commit 56b265e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

test/dsl/dsl_basics.jl

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -169,30 +169,30 @@ let
169169
# Checks DSL reactions are correct.
170170
rxs = reactions(rs)
171171
@test isequal([r1, r2, r3], rxs)
172-
@test isequal(get_metadata_dict(r1), get_metadata_dict(rxs[1]))
173-
@test isequal(get_metadata_dict(r2), get_metadata_dict(rxs[2]))
174-
@test isequal(get_metadata_dict(r3), get_metadata_dict(rxs[3]))
172+
@test isequal(Catalyst.get_metadata_dict(r1), Catalyst.get_metadata_dict(rxs[1]))
173+
@test isequal(Catalyst.get_metadata_dict(r2), Catalyst.get_metadata_dict(rxs[2]))
174+
@test isequal(Catalyst.get_metadata_dict(r3), Catalyst.get_metadata_dict(rxs[3]))
175175

176176
# Checks that accessor functions works on the DSL.
177-
@test has_metadata(rxs[1], :noise_scaling)
178-
@test !has_metadata(rxs[1], :md_1)
179-
@test !has_metadata(rxs[2], :noise_scaling)
180-
@test has_metadata(rxs[2], :md_1)
181-
@test !has_metadata(rxs[3], :noise_scaling)
182-
@test !has_metadata(rxs[3], :md_1)
177+
@test Catalyst.has_metadata(rxs[1], :noise_scaling)
178+
@test !Catalyst.has_metadata(rxs[1], :md_1)
179+
@test !Catalyst.has_metadata(rxs[2], :noise_scaling)
180+
@test Catalyst.has_metadata(rxs[2], :md_1)
181+
@test !Catalyst.has_metadata(rxs[3], :noise_scaling)
182+
@test !Catalyst.has_metadata(rxs[3], :md_1)
183183

184-
@test isequal(get_metadata(rxs[1], :noise_scaling), η)
185-
@test isequal(get_metadata(rxs[2], :md_1), 1.0)
184+
@test isequal(Catalyst.get_metadata(rxs[1], :noise_scaling), η)
185+
@test isequal(Catalyst.get_metadata(rxs[2], :md_1), 1.0)
186186

187187
# Test that metadata works for @reaction macro.
188188
rx1 = @reaction k, 2X --> X2, [noise_scaling=$η]
189189
rx2 = @reaction k, 2X --> X2, [md_1=1.0, md_2=false, md_3="Hello world", md_4=:sym, md_5=X+X2^k-1, md_6=(0.1,2.0)]
190190
rx3 = @reaction k, 2X --> X2
191191

192192
@test isequal([rx1, rx2, rx3], rxs)
193-
@test isequal(get_metadata_dict(rx1), get_metadata_dict(rxs[1]))
194-
@test isequal(get_metadata_dict(rx2), get_metadata_dict(rxs[2]))
195-
@test isequal(get_metadata_dict(rx3), get_metadata_dict(rxs[3]))
193+
@test isequal(Catalyst.get_metadata_dict(rx1), Catalyst.get_metadata_dict(rxs[1]))
194+
@test isequal(Catalyst.get_metadata_dict(rx2), Catalyst.get_metadata_dict(rxs[2]))
195+
@test isequal(Catalyst.get_metadata_dict(rx3), Catalyst.get_metadata_dict(rxs[3]))
196196
end
197197

198198
# Checks that repeated metadata throws errors.

0 commit comments

Comments
 (0)