Skip to content

Commit e5aae50

Browse files
committed
don't use exact comparison for floating point vals
1 parent a954481 commit e5aae50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/pirls.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ end
8080
gmldγ = fit(MixedModel, @formula(RT_raw ~ 1 + Class * NativeLanguage + (1|Subject) + (1|Word)),
8181
lexdec, Gamma(), IdentityLink(), fast=false)
8282
@test all(gmldγ.optsum.initial_step .> 0)
83-
@test first(gmldγ.θ) == 0
83+
@test first(gmldγ.θ) 0 atol=0.001
8484

8585
# don't know how much sense this model makes, but it's a boundary fit on two
8686
# boundaries and it uses InverseGaussian()
8787
gmldig = fit(MixedModel, @formula(RT_raw ~ 1 + Class * NativeLanguage + (1|Subject) + (1|Word)),
8888
lexdec, InverseGaussian(), IdentityLink(), fast=false)
8989
@test all(gmldγ.optsum.initial_step .> 0)
90-
@test all(gmldig.θ .== 0)
90+
@test all(isapprox.(gmldig.θ, 0, atol=0.001))
9191
end

0 commit comments

Comments
 (0)