From 6efa1f0c49afe3a9d8c16ab6e0d7057370baadda Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 10 Jul 2024 17:13:19 +0100 Subject: [PATCH] fix FixedIntercept test --- EpiAware/test/EpiLatentModels/models/FixedIntercept.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/EpiAware/test/EpiLatentModels/models/FixedIntercept.jl b/EpiAware/test/EpiLatentModels/models/FixedIntercept.jl index d0dc7b9f6..d9b2bcbaf 100644 --- a/EpiAware/test/EpiLatentModels/models/FixedIntercept.jl +++ b/EpiAware/test/EpiLatentModels/models/FixedIntercept.jl @@ -10,6 +10,8 @@ end int = FixedIntercept(0.1) int_model = generate_latent(int, 10) int_model_out = int_model() - @test length(int_model_out[1]) == 10 - @test all(x -> x == int_model_out[2].intercept, int_model_out[1]) + rand_model = rand(int_model) + @test rand_model == NamedTuple() + @test length(int_model_out) == 10 + @test all(x -> x == 0.1, int_model_out) end