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

Handling of comments in doctests #483

Open
mortenpi opened this issue May 14, 2017 · 1 comment
Open

Handling of comments in doctests #483

mortenpi opened this issue May 14, 2017 · 1 comment
Labels
Status: Speculative It's unknown if this is something that we wan't to do Type: Feature

Comments

@mortenpi
Copy link
Member

Julia Base has quite a few examples of potentially doctestable blocks with comments, e.g.:

# 32-bit system:
julia> UInt
UInt32

# 64-bit system:
julia> UInt
UInt64

They cannot be doctested because the comment is not part of the actual output, but perhaps we should figure out a convention allowing such blocks to be doctested as well, with the comments being automatically ignored.

@mortenpi mortenpi changed the title Handle comments in doctests Handling of comments in doctests May 14, 2017
@mortenpi
Copy link
Member Author

Note: comment lines right after the REPL are already ignored, e.g.

julia> code()
# ignored comment
output

Ref: src/DocChecks.jl#L373-L400

@mortenpi mortenpi added Status: Speculative It's unknown if this is something that we wan't to do and removed Type: Decision labels Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Speculative It's unknown if this is something that we wan't to do Type: Feature
Projects
None yet
Development

No branches or pull requests

1 participant