Skip to content

Commit

Permalink
fix final tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Jun 21, 2024
1 parent c880a74 commit 1770c26
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions EpiAware/test/EpiObsModels/StackObservationModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
obs = StackObservationModels(
[PoissonError(), NegativeBinomialError()], ["Poisson", "NegativeBinomial"])

@test obs.models == [PoissonError(), NegativeBinomialError()]
prefix_p = PrefixObservationModel(PoissonError(), "Poisson")
prefix_n = PrefixObservationModel(NegativeBinomialError(), "NegativeBinomial")
@test obs.models == [prefix_p, prefix_n]
@test obs.model_names == ["Poisson", "NegativeBinomial"]

obs_named = StackObservationModels((
Cases = PoissonError(), Deaths = NegativeBinomialError()))

@test obs_named.models == [PoissonError(), NegativeBinomialError()]
prefix_p = PrefixObservationModel(PoissonError(), "Cases")
prefix_n = PrefixObservationModel(NegativeBinomialError(), "Deaths")
@test obs_named.models == [prefix_p, prefix_n]
@test obs_named.model_names == ["Cases", "Deaths"]
end

Expand Down

0 comments on commit 1770c26

Please sign in to comment.