octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

@example's as doctests


From: Colin Macdonald
Subject: @example's as doctests
Date: Mon, 02 Feb 2015 17:42:33 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi all,

I've recently learned how to use address@hidden to put the expected result
into the texinfo docs of my functions.  (Thanks to "interval" pkg dev!)

Is there any existing way to run these as tests?  Like doctest in
Python?  I.e., extract them, run them, make sure the output matches the
address@hidden  The documentation refers to "example" but that seems to
pull in `%!demo` blocks instead.

I expect the answer will be "no, but please write such a thing"... :(

thanks,
Colin

-- 
Colin Macdonald
Associate Professor
Tutorial Fellow at Oriel College
University of Oxford

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]