[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
%!functions and endfunction declaration
From: |
John W. Eaton |
Subject: |
%!functions and endfunction declaration |
Date: |
Sun, 9 Oct 2011 10:03:10 -0400 |
On 7-Oct-2011, Rik wrote:
| Currently, test functions are declared as
|
| %!function mytestfunc (...)
| %! function line 1 # separated by 1 space from '%!'
| %! function line 2
| %!test # OR any other test block like assert, shared, or fail
|
| It's a small syntactic thing, but I would like to be able to write a closing
| endfunction declaration so that this is valid
| %!function mytestfunc (...)
| %! line 1
| %!endfunction
| %!test
|
| Is there any objection to the attached patch to test.m which makes '%!
| endfunction' a NOP for testing, but doesn't provoke a syntax error in test.m?
I don't see a problem with making this change and I like that it can
make it easier to read the tests.
Thanks,
jwe