divisors: add doctest filter #12
Annotations
2 errors
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
|
|
The logs for this run have expired and are no longer available.
Loading