Skip to content

divisors: add doctest filter #12

divisors: add doctest filter

divisors: add doctest filter #12

Triggered via pull request September 20, 2023 20:18
Status Failure
Total duration 2m 24s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

CI.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

2 errors
Documentation: src/Primes.jl#L971
doctest failure in ~/work/Primes.jl/Primes.jl/src/Primes.jl:971-996 ```jldoctest; filter = r"\s+#.*$" julia> divisors(60) 12-element Vector{Int64}: 1 # 1 2 # 2 4 # 2 * 2 3 # 3 6 # 3 * 2 12 # 3 * 2 * 2 5 # 5 10 # 5 * 2 20 # 5 * 2 * 2 15 # 5 * 3 30 # 5 * 3 * 2 60 # 5 * 3 * 2 * 2 julia> divisors(-10) 4-element Vector{Int64}: 1 2 5 10 julia> divisors(0) Int64[] ``` Subexpression: divisors(60) Evaluated output: 12-element Vector{Int64}: 1 2 4 3 6 12 5 10 20 15 30 60 Expected output: 12-element Vector{Int64}: 1 # 1 2 # 2 4 # 2 * 2 3 # 3 6 # 3 * 2 12 # 3 * 2 * 2 5 # 5 10 # 5 * 2 20 # 5 * 2 * 2 15 # 5 * 3 30 # 5 * 3 * 2 60 # 5 * 3 * 2 * 2 diff = Warning: Diff output requires color. 12-element Vector{Int64}: 1 # 1 2 # 2 4 # 2 * 2 3 # 4 3 6 # 3 * 2 12 # 3 * 2 * 2 5 # 6 12 5 10 # 5 * 2 20 # 5 * 2 * 2 15 # 5 * 3 30 # 5 * 3 * 2 60 # 5 * 3 * 2 * 210 20 15 30 60
Documentation
Process completed with exit code 1.