[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
test functions and loops
From: |
address@hidden |
Subject: |
test functions and loops |
Date: |
Fri, 31 Aug 2007 19:24:48 +0000 (GMT) |
Hi all
I'm trying to write a test function.
Inside this function I have to use loops ... or I think I have to
use loops
but I got problems with this.
the following is only an example:
%! for i = 1:3
%!assert(1,1) # this must be a successfull test !!!
%! endfor
but this code fails with:
>>> function __test__( )
assert(1,1)
endfor
endfunction
^
Is there a way to do the test like above?
thanks for any help
Michael
- test functions and loops,
address@hidden <=