Skip to content

Commit

Permalink
fix FixedIntercept test
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Jul 10, 2024
1 parent 1dc6fce commit 6efa1f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions EpiAware/test/EpiLatentModels/models/FixedIntercept.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6efa1f0

Please sign in to comment.