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

recursion safety: enable doctests that call doctest #184

Open
cbm755 opened this issue Mar 19, 2018 · 0 comments
Open

recursion safety: enable doctests that call doctest #184

cbm755 opened this issue Mar 19, 2018 · 0 comments

Comments

@cbm755
Copy link
Collaborator

cbm755 commented Mar 19, 2018

Consider a test which itself calls doctest. E.g., if foo.m has:

@example
doctest chop
@print{} ...
@print{}     PASS     2/2
@end example

I get failures on doctest foo:

error: matrix cannot be indexed with {
error: called from
    doctest_datastore at line 38 column 9
    doctest_run_tests at line 73 column 25
    doctest_run_docstring at line 96 column 9
    doctest_collect at line 188 column 11
    doctest at line 289 column 11

I guess its the persistent variables not being safe in this way. I'm not losing sleep over this but it might be convenient within our own test suite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants