-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
This makes it more trouble that it's worth in the real world. It needs something like:
# Parses all files matching *glob* for marked examples to create specs.
macro doctest(glob)
{% calling_dir = glob.filename.gsub(/[^\/]*$/, "") %}\
{% for filename, _ in `find #{calling_dir}/$(echo #{glob} | sed 's/\*.*//') -type f -regex $(echo #{calling_dir}/#{glob} | sed 's!/!\\\/!g;s!\.!\\.!g;s/\*\*/.,,,,/g;s/\*/[^\\]*/g;s/,,,,/*/g;s/"$/$"/')`.lines %}\
Docspec.doctest_file({{filename}})
{% end %}\
endMetadata
Metadata
Assignees
Labels
No labels