Skip to content

Commit 77bd570

Browse files
authored
Fix quantile doctest (#188)
We should have updated the doctests when improving behavior at #184. Also update Documenter, which by default now fails when doctests fail.
1 parent bfa5c6b commit 77bd570

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

docs/Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33

44
[compat]
5-
Documenter = "0.24"
5+
Documenter = "1.8"

docs/make.jl

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ end
88
makedocs(
99
modules = [Statistics],
1010
sitename = "Statistics",
11+
warnonly = [:missing_docs, :cross_references],
1112
pages = Any[
1213
"Statistics" => "index.md"
1314
]

src/Statistics.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -962,9 +962,9 @@ true
962962
963963
julia> y
964964
3-element Vector{Float64}:
965-
1.2000000000000002
965+
1.2
966966
2.0
967-
2.8000000000000003
967+
2.8
968968
```
969969
"""
970970
function quantile!(q::AbstractArray, v::AbstractVector, p::AbstractArray;
@@ -1106,7 +1106,7 @@ julia> quantile(0:20, [0.1, 0.5, 0.9])
11061106
3-element Vector{Float64}:
11071107
2.0
11081108
10.0
1109-
18.000000000000004
1109+
18.0
11101110
11111111
julia> quantile(skipmissing([1, 10, missing]), 0.5)
11121112
5.5

0 commit comments

Comments
 (0)