-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix doctest code-blocks in documentation #15753
Conversation
Ref #13966 |
I think we can just rename the method.... |
@nalimilan, was this intended to be a doctest?
Otherwise we are down to 40 failures all in the style described above. And where I am not quite certain how to proceed. |
I renamed the problematic functions, but I am open to better suggestions.
|
I think we can merge this and I will open issues about the remaining failing tests. |
That |
Thanks fixed. |
All done. All tests are now passing
|
@@ -194,7 +194,7 @@ One can construct :obj:`TypeVar`\s manually: | |||
.. doctest:: | |||
|
|||
julia> TypeVar(:V, Signed, Real, false) | |||
Signed<:V<:Real | |||
V<:Real |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happened here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fff2b9a should the in_env
be false
if the :tvar_env
context is not found?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
who should we be asking that question?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bump - this was great work, but goes stale quickly. Can you rebase and see where we stand? |
I won't have time for a rebase till next week, but I will take a look after that. |
@vchuravy could you use assistance with this PR? I was hoping to add a new doctest. |
Due to the changes in 4706184 tuples are now printed compact. Thus to demonstrate the point in this example we have to execute the examples independently.
@omus I just rebased, but there is an problem with Array printing that causes doctest to fail. I don't have time to look into it right now so feel free to give it a go. |
@@ -5643,7 +5643,8 @@ julia> deleteat!([6, 5, 4, 3, 2, 1], 1:2:5) | |||
|
|||
julia> deleteat!([6, 5, 4, 3, 2, 1], (2, 2)) | |||
ERROR: ArgumentError: indices must be unique and sorted | |||
in deleteat! at array.jl:543 | |||
in deleteat!(::Array{Int64,1}, ::Tuple{Int64,Int64}) at ./array.jl:565 | |||
in eval(::Module, ::Any) at ./boot.jl:237 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like the doctest system should be pruning this line
I'm currently working on fixing doctests. Expect a PR before the end of JuliaCon |
cb8aa0b - fix most doctests in the manual that changed due to backtraces. cd3797e - fix stdlib doctests 1892f72 - fix doctests in devdocs d9495c7 - resolve Warning mismatch by renaming functions 83ef854 - convert superflous doctest to code-block 78f6d70 - Fix example about typemax and typemin Due to the changes in 4706184 tuples are now printed compact. Thus to demonstrate the point in this example we have to execute the examples independently. c03e6e0 - fixup linenumbers 35a31bb - start->first Ref JuliaLang#15753
cb8aa0b - fix most doctests in the manual that changed due to backtraces. cd3797e - fix stdlib doctests 1892f72 - fix doctests in devdocs d9495c7 - resolve Warning mismatch by renaming functions 83ef854 - convert superflous doctest to code-block 78f6d70 - Fix example about typemax and typemin Due to the changes in 4706184 tuples are now printed compact. Thus to demonstrate the point in this example we have to execute the examples independently. c03e6e0 - fixup linenumbers 35a31bb - start->first Ref JuliaLang#15753
cb8aa0b - fix most doctests in the manual that changed due to backtraces. cd3797e - fix stdlib doctests 1892f72 - fix doctests in devdocs d9495c7 - resolve Warning mismatch by renaming functions 83ef854 - convert superflous doctest to code-block 78f6d70 - Fix example about typemax and typemin Due to the changes in 4706184 tuples are now printed compact. Thus to demonstrate the point in this example we have to execute the examples independently. c03e6e0 - fixup linenumbers 35a31bb - start->first Ref JuliaLang#15753
cb8aa0b - fix most doctests in the manual that changed due to backtraces. cd3797e - fix stdlib doctests 1892f72 - fix doctests in devdocs d9495c7 - resolve Warning mismatch by renaming functions 83ef854 - convert superflous doctest to code-block 78f6d70 - Fix example about typemax and typemin Due to the changes in 4706184 tuples are now printed compact. Thus to demonstrate the point in this example we have to execute the examples independently. c03e6e0 - fixup linenumbers 35a31bb - start->first Ref JuliaLang#15753
cb8aa0b - fix most doctests in the manual that changed due to backtraces. cd3797e - fix stdlib doctests 1892f72 - fix doctests in devdocs d9495c7 - resolve Warning mismatch by renaming functions 83ef854 - convert superflous doctest to code-block 78f6d70 - Fix example about typemax and typemin Due to the changes in 4706184 tuples are now printed compact. Thus to demonstrate the point in this example we have to execute the examples independently. c03e6e0 - fixup linenumbers 35a31bb - start->first Ref JuliaLang#15753
Due to backtrace and printing changes most of the doctests are currently failing.
Remaining issues are:
Changed syntax errors
Method overwritten
Changed Unit-range printing
Inf in Tuple printing
Todo