[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unexpected textscan error
From: |
Ben Abbott |
Subject: |
Re: unexpected textscan error |
Date: |
Sat, 08 Oct 2011 21:06:15 -0400 |
On Oct 8, 2011, at 8:57 PM, Michael D Godfrey wrote:
> On 10/08/2011 05:47 PM, Ben Abbott wrote:
>> On Oct 8, 2011, at 8:23 PM, Ben Abbott wrote:
>>
>>
>>> >
>>> I've isolated the problem, and will push a change soon.
>>>
>>> >
>>> >
>>> Ben
>>>
>> Changeset is below.
>>
>>
>> http://hg.savannah.gnu.org/hgweb/octave/rev/ceda1714a4ad
>>
>>
>> Ben
>>
> After this I still get:
> octave:1> test substr
> ***** assert (substr ("This is a test string", 1, 0), "");
> !!!!! test failed
> assert (substr ("This is a test string", 1, 0),"") expected
>
>
> but got
>
> octave:2>
> =================================
> This is the only failure.
>
Looks like a improperly written test to me. Perhaps it should be ...
assert (isempty (substr ("This is a test string", 1, 0)));
I've cc'd Rik.
Ben