Open fingolfin opened 1 year ago
This sounds reasonable to me. Maybe something like DocTestTeardown
and teardown
? Or is there a better antonym for "setup" in this context?
Those names sound good to me. I don't know a better antonym to "setup" than teardown
.
For
jldoctest
s, one can assign block-level setup code, but there doesn't seem to be a teardown counterpart. Application: modify a global setting beforejldoctest
starts (using setup code), and then resetting it afterwards (using teardown code).Hypothetical example:
Or perhaps there is already a way for this that I missed in the manual?