# HG changeset patch # User Rik # Date 1292294273 28800 # Node ID 7bb759d617e273f1bfe7adae01fa0cfe1af07a8e # Parent cbf58e4b5f4ec225bf38091a632ab4f2ad3a9cbd strmatch.m: Add test with null search pattern. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,6 +1,10 @@ +2010-12-13 Rik + + * strings/strmatch.m: Add test with null search pattern. + 2010-12-13 Doug Stewart - * plot/hist.m: Improved the help section. + * plot/hist.m: Improved the help section. 2010-12-13 Kai Habel @@ -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 diff --git a/scripts/strings/strmatch.m b/scripts/strings/strmatch.m --- 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])