From 3dbbb85df80d23ec1a1640a2bf32e399fb77a1d7 Mon Sep 17 00:00:00 2001 From: Phillip Alday Date: Wed, 5 Oct 2022 15:43:18 -0500 Subject: [PATCH] LTS test compat --- test/misc.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/misc.jl b/test/misc.jl index 13d18186e..e36c71f7d 100644 --- a/test/misc.jl +++ b/test/misc.jl @@ -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