From 05b51878f2abbc18ac5484a76410ff1b52745635 Mon Sep 17 00:00:00 2001 From: albert-de-montserrat Date: Wed, 11 Sep 2024 17:01:43 +0200 Subject: [PATCH] fix test --- test/test_Traits.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_Traits.jl b/test/test_Traits.jl index 350baa82..a2e3dc72 100644 --- a/test/test_Traits.jl +++ b/test/test_Traits.jl @@ -64,8 +64,9 @@ using Test, GeoParams @test isviscoelastic(r1[4]) isa NonElasticRheologyTrait # test get_G and get_Kb - @test GeoParams.get_G(isviscoelastic(CompositeRheology(v1, v2, v3)), r) == 0 - @test GeoParams.get_Kb(isviscoelastic(CompositeRheology(v1, v2, v3)), r) == Inf + r = CompositeRheology(v1, v2, v3) + @test GeoParams.get_G(isviscoelastic(r), r) == 0 + @test GeoParams.get_Kb(isviscoelastic(r), r) == Inf ## linear rheology traits # test basic cases