JuliaCrypto/SHA.jl

Doctests are failing

DilumAluthge opened this issue · 0 comments

From JuliaLang/julia#42871 (https://buildkite.com/julialang/julia-master/builds/5337#c13096a2-2434-4121-9250-1ed7fc8b81bd):

[ Info: Doctest: running doctests.
┌ Error: doctest failure in src/stdlib/SHA.md:48-88
│ 
│ ```jldoctest
│ julia> using SHA
│ 
│ julia> ctx = SHA2_256_CTX()
│ SHA2 256-bit hash state
│ 
│ julia> update!(ctx, b"some data")
│ 0x0000000000000009
│ 
│ julia> update!(ctx, b"some more data")
│ 0x0000000000000017
│ 
│ julia> digest!(ctx)
│ 32-element Vector{UInt8}:
│  0xbe
│  0xcf
│  0x23
│  0xda
│  0xaf
│  0x02
│  0xf7
│  0xa3
│  0x57
│  0x92
│  0x5b
│  0xc5
│  0xe1
│     ⋮
│  0x19
│  0xa0
│  0x1b
│  0x89
│  0x4f
│  0x59
│  0xd8
│  0xb3
│  0xb4
│  0x81
│  0x8b
│  0xc5
│ ```
│ 
│ Subexpression:
│ 
│ digest!(ctx)
│ 
│ Evaluated output:
│ 
│ 32-element Vector{UInt8}:
│  0xbe
│  0xcf
│  0x23
│  0xda
│  0xaf
│  0x02
│  0xf7
│  0xa3
│  0x57
│  0x92
│     ⋮
│  0x89
│  0x4f
│  0x59
│  0xd8
│  0xb3
│  0xb4
│  0x81
│  0x8b
│  0xc5
│ 
│ Expected output:
│ 
│ 32-element Vector{UInt8}:
│  0xbe
│  0xcf
│  0x23
│  0xda
│  0xaf
│  0x02
│  0xf7
│  0xa3
│  0x57
│  0x92
│  0x5b
│  0xc5
│  0xe1
│     ⋮
│  0x19
│  0xa0
│  0x1b
│  0x89
│  0x4f
│  0x59
│  0xd8
│  0xb3
│  0xb4
│  0x81
│  0x8b
│  0xc5
│ 
│   diff =
│    32-element Vector{UInt8}:
│     0xbe
│     0xcf
│     0x23
│     0xda
│     0xaf
│     0x02
│     0xf7
│     0xa3
│     0x57
│     0x92
│     0x5b
│     0xc5
│     0xe1
│        0x92
│        ⋮
│     0x19
│     0xa0
│     0x1b
│     0x89
│     0x4f
│     0x59
│     0xd8
│     0xb3
│     0xb4
│     0x81
│     0x8b
│     0xc5
└ @ Documenter.DocTests /cache/build/amdci4-3/julialang/julia-master/doc/deps/packages/Documenter/f5jts/src/DocTests.jl:385
ERROR: LoadError: `makedocs` encountered a doctest error. Terminating build