|
From: | Colin Macdonald |
Subject: | Re: @example's as doctests |
Date: | Sat, 28 Mar 2015 21:23:34 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
On 28/03/15 17:39, Colin Macdonald wrote:
3. "help strjoin" shows strjoin ({'Octave','Scilab','Lush','Yorick'}, '*') => 'Octave*Scilab*Lush*Yorick' Currently I would need to have "ans", like this strjoin ({'Octave','Scilab','Lush','Yorick'}, '*') => ans = 'Octave*Scilab*Lush*Yorick' But I think it might be nice to have doctest accept either, at least in the specific case of "ans".
Ignore this comment. doctest-for-matlab already smart enough about "ans = ", problem here is extra quotes. Patch to follow.
[Prev in Thread] | Current Thread | [Next in Thread] |