You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I want to test part of an object instead of the full structure. So I bind it to a variable first and then test part of it. If I write a test ending with a semicolon and an empty line next, the test passes:
No, indeed it is not, and the Python REPL simply omits the empty line. Is the objective to show the code inside ```jldoctest as if it were typed in a REPL?
Yes, you can copy paste the code from a jldoctest straight into the REPL, including prompts and it will work (unless you are on windows, unfortunately).
Sometimes I want to test part of an object instead of the full structure. So I bind it to a variable first and then test part of it. If I write a test ending with a semicolon and an empty line next, the test passes:
But if I omit that empty line, as I would in a Python doc-test, then
c
is not defined:This is similar to #452, but separate in my view.
The text was updated successfully, but these errors were encountered: