[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: Re: AW: Re: test functions and loops
From: |
address@hidden |
Subject: |
AW: Re: AW: Re: test functions and loops |
Date: |
Tue, 4 Sep 2007 05:16:26 +0000 (GMT) |
I read the documentation of octave 2-9-12 ...
thanks again
Michael
>----Ursprüngliche Nachricht----
>Von: address@hidden
>Datum: 03.09.2007 09:39
>An: <address@hidden>
>Betreff: Re: AW: Re: test functions and loops
>
>address@hidden wrote:
>> %!test
>> %! for i=1:3
>> %! a=1;
>> %! b=1;
>> %! assert(a,b)
>> %! endfor
>>
>> ends with
>> PASSES 1 out of 1 tests
>>
>> this was a little bit confusing for me... of course, it's only
one
>> test and not three
>>
>> thanks for your answer
>>
>It is documented in the latest versions of the manual in an
appendix,
>though perhaps the wording needs a bit of reworking..
>
>Cheers
>David
>
>
>
>> Michael
>>
>>
>>
>>> ----Ursprüngliche Nachricht----
>>> Von: address@hidden
>>> Datum: 31.08.2007 22:28
>>> An: <address@hidden>
>>> Kopie: "help list octave"<address@hidden>
>>> Betreff: Re: test functions and loops
>>>
>>> address@hidden wrote:
>>>
>>>> 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 !!!
>>>>
>>> Try adding a space between the "%!" and the "assert". Without
the
>>>
>> space
>>
>>> its treated differently.
>>>
>>> D
>>>
>>>
>>
>>
>>
>>
>
>
>--
>David Bateman David.
address@hidden
>Motorola Labs - Paris +33 1 69 35 48 04
(Ph)
>Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33
(Mob)
>91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01
(Fax)
>
>The information contained in this communication has been
classified as:
>
>[x] General Business Information
>[ ] Motorola Internal Use Only
>[ ] Motorola Confidential Proprietary
>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- AW: Re: AW: Re: test functions and loops,
address@hidden <=