octave-maintainers
[Top][All Lists]
Advanced

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

Re: @example's as doctests


From: Colin Macdonald
Subject: Re: @example's as doctests
Date: Sat, 28 Mar 2015 16:39:07 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 28/03/15 16:07, Oliver Heimlich wrote:
Thus, only support for @group blocks in doctest is missing. doctest
could use @end group as a separator between expected output and the next
commands. However, this would be a little bit of a hack, because @group
could also be used within expected output if it is very long. Any better
ideas?

I see, I had not thought of that.

Maybe need to implement stepping through the code, checking one command at time. This should be straightforward but will take me some time... And I'm not hugely motivated as I personally prefer ">>" to mark each command.

Alternatively (or perhaps additionally), any thoughts about adding a @prompt{} command?

Colin



reply via email to

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