Skip to content

Commit

Permalink
Cases, bloody cases
Browse files Browse the repository at this point in the history
  • Loading branch information
braamvandyk committed Jul 13, 2024
1 parent faf7eb9 commit afb5cfe
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/components/argon.comp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Argon
1
Ar
1
39.948
5 changes: 5 additions & 0 deletions test/components/nitrogen.comp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Nitrogen
1
N
2
28.0134
12 changes: 12 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ using Test
dummy = writecomponent(joinpath(@__DIR__, "components", "Hydrogen.comp"), fs.comps["Hydrogen"])
@test dummy == 21

@comp begin
"N" --> 2
end "Nitrogen" fs
dummy = writecomponent(joinpath(@__DIR__, "components", "Nitrogen.comp"), fs.comps["Nitrogen"])
@test dummy == 22

@comp begin
"Ar" --> 1
end "Argon" fs
dummy = writecomponent(joinpath(@__DIR__, "components", "Argon.comp"), fs.comps["Argon"])
@test dummy == 19

count = readcomponentlist!(fs, joinpath(@__DIR__, "components"), ["Ethylene", "Ethane", "Hydrogen"])
@test count == 3
@test fs.comps["Ethylene"].Mr 28.053
Expand Down

0 comments on commit afb5cfe

Please sign in to comment.