Mercurial > hg > octave-jordi
changeset 11354:7bb759d617e2
strmatch.m: Add test with null search pattern.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Mon, 13 Dec 2010 18:37:53 -0800 |
parents | cbf58e4b5f4e |
children | 34c5cd5a17ec |
files | scripts/ChangeLog scripts/strings/strmatch.m |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,6 +1,10 @@ +2010-12-13 Rik <octave@nomad.inbox5.com> + + * strings/strmatch.m: Add test with null search pattern. + 2010-12-13 Doug Stewart <doug.dastew@gmail.com> - * plot/hist.m: Improved the help section. + * plot/hist.m: Improved the help section. 2010-12-13 Kai Habel <kai.habel@gmx.de> @@ -17,7 +21,7 @@ * optimization/sqp.m: Remove never violated Inf bounds from computation in function for inequality constraints (bug - #31742). Remove non-functional check for inequality constraints + #31742). Remove non-functional check for inequality constraints being +Inf in each iteration. 2010-12-12 Jaroslav Hajek <highegg@gmail.com>
--- a/scripts/strings/strmatch.m +++ b/scripts/strings/strmatch.m @@ -112,3 +112,4 @@ %!assert (strmatch ("apple pie", "apple"), []); %!assert (strmatch ("a b", {"a b", "a c", "c d"})); %!assert (strmatch ("", {"", "foo", "bar", ""}), [1, 4]) +%!assert (strmatch ('', { '', '% comment line', 'var a = 5', ''}, 'exact'), [1,4])