Skip to content

Commit

Permalink
Merge a2cd127 into 983bf02
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Oct 4, 2020
2 parents 983bf02 + a2cd127 commit 8bc3612
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/statmodels.jl
Expand Up @@ -30,7 +30,11 @@ m = rand(3,4)

@test sprint(show, StatsBase.PValue(1.0)) == "1.0000"
@test sprint(show, StatsBase.PValue(1e-1)) == "0.1000"
@test sprint(show, StatsBase.PValue(1e-5)) == "<1e-4"
if VERSION > v"1.6.0-DEV"
@test sprint(show, StatsBase.PValue(1e-5)) == "<1e-04"
else
@test sprint(show, StatsBase.PValue(1e-5)) == "<1e-4"
end
@test sprint(show, StatsBase.PValue(NaN)) == "NaN"
@test_throws ErrorException StatsBase.PValue(-0.1)
@test_throws ErrorException StatsBase.PValue(1.1)
Expand Down

0 comments on commit 8bc3612

Please sign in to comment.