Skip to content

Commit

Permalink
LTS test compat
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Oct 5, 2022
1 parent b32e4c0 commit 3dbbb85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/misc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ using MixedModels: dataset

@test MixedModel(@formula(yield ~ 0 + (1|batch)), dyestuff) isa LinearMixedModel
@test MixedModel(@formula(yield ~ 1 + (1|batch)), dyestuff) isa LinearMixedModel
@test_throws r"Formula contains no random effects" MixedModel(@formula(yield ~ 0 + batch), dyestuff)
@test_throws r"Formula contains no random effects" MixedModel(@formula(yield ~ 1), dyestuff)
@test_throws MixedModels._MISSING_RE_ERROR MixedModel(@formula(yield ~ 0 + batch), dyestuff)
@test_throws MixedModels._MISSING_RE_ERROR MixedModel(@formula(yield ~ 1), dyestuff)

@test MixedModel(@formula(yield ~ 0 + (1|batch)), dyestuff, Poisson()) isa GeneralizedLinearMixedModel
@test MixedModel(@formula(yield ~ 1 + (1|batch)), dyestuff, Poisson()) isa GeneralizedLinearMixedModel
@test_throws r"Formula contains no random effects" MixedModel(@formula(yield ~ 0 + batch), dyestuff, Poisson())
@test_throws r"Formula contains no random effects" MixedModel(@formula(yield ~ 1), dyestuff, Poisson())
@test_throws MixedModels._MISSING_RE_ERROR MixedModel(@formula(yield ~ 0 + batch), dyestuff, Poisson())
@test_throws MixedModels._MISSING_RE_ERROR MixedModel(@formula(yield ~ 1), dyestuff, Poisson())
end

0 comments on commit 3dbbb85

Please sign in to comment.