Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doctests are failing #80

Closed
DilumAluthge opened this issue Nov 1, 2021 · 0 comments · Fixed by #81
Closed

Doctests are failing #80

DilumAluthge opened this issue Nov 1, 2021 · 0 comments · Fixed by #81

Comments

@DilumAluthge
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant