Mercurial > hg > octave-nkf
changeset 6901:0baa196d93b5
[project @ 2007-09-14 17:16:42 by jwe]
author | jwe |
---|---|
date | Fri, 14 Sep 2007 17:16:42 +0000 |
parents | e2d560e5a58d |
children | d6d19fcc51b0 |
files | scripts/ChangeLog scripts/strings/index.m |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2007-08-04 Jean-Francois Cardoso <cardoso@tsi.enst.fr> + + * strings/index.m: Correct for strings differing after the third + position (bug reported by Maude Martin). + 2007-09-13 John W. Eaton <jwe@octave.org> * plot/__default_colormap__.m: Delete.
--- a/scripts/strings/index.m +++ b/scripts/strings/index.m @@ -106,6 +106,7 @@ break; endif endfor + v = []; endif endif @@ -122,9 +123,11 @@ %!assert(index("astringbstringcstring", "st"), 2) %!assert(index("astringbstringcstring", "str"), 2) %!assert(index("astringbstringcstring", "string"), 2) +%!assert(index("abc---", "abc+++"), 0) ## test everything out in reverse %!assert(index("astringbstringcstring", "s", "last"), 16) %!assert(index("astringbstringcstring", "st", "last"), 16) %!assert(index("astringbstringcstring", "str", "last"), 16) %!assert(index("astringbstringcstring", "string", "last"), 16) +%!assert(index("abc---", "abc+++", "last"), 0)