Skip to content

Commit 8a39550

Browse files
committed
Test that we can parse rmg fragment mechanism
1 parent cc06f89 commit 8a39550

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/TestParse.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@ s = r.products[1]
99
@test getEnthalpy(s.thermo,1000.0) 20677.0 rtol=1e-4
1010
@test getEnthalpy(out["phase"]["Species"][5].thermo,1000.0) 20677.2 rtol=1e-4
1111
end;
12+
13+
@testset "Read fragment input from file" begin
14+
out = readinput("../src/testing/minimal_rmg_fragment.rms")
15+
fragment = out["phase"]["Species"][5]
16+
17+
# check that fragment structure is parsed correctly and the representative molecule is assigned
18+
@test fragment.atomnums["C"] == 18
19+
@test fragment.molecularweight 0.25046 rtol=1e-4
20+
@test fragment.radius 4.66375e-10 rtol=1e-4
21+
end;

0 commit comments

Comments
 (0)