Skip to content

Commit

Permalink
test for #161
Browse files Browse the repository at this point in the history
  • Loading branch information
longemen3000 committed Apr 1, 2023
1 parent d30facc commit cf16757
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/test_misc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,21 @@
@test PCSAFT_testsimple <: EoSModel #@newmodelsimple
@test PCSAFT_testgc <: EoSModel #@newmodelgc
end

@testset "#161" begin
struct PCSAFT161 <: Clapeyron.PCSAFTModel
components::Vector{String}
params::Clapeyron.PCSAFTParam
references::Vector{String}
weird_thing::Int
end

Clapeyron.@registermodel PCSAFT161
@test hasmethod(Base.length,Tuple{PCSAFT161})
@test hasmethod(Base.show,Tuple{IO,PCSAFT161})
@test hasmethod(Base.show,Tuple{IO,MIME"text/plain",PCSAFT161})
@test hasmethod(Clapeyron.molecular_weight,Tuple{PCSAFT161,Array{Float64}})
end
end
@printline
if Base.VERSION >= v"1.8" #for some reason, it segfaults on julia 1.6
Expand Down

0 comments on commit cf16757

Please sign in to comment.