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	Mon Dec 13 18:31:15 2010 -0800
+++ b/scripts/ChangeLog	Mon Dec 13 18:37:53 2010 -0800
@@ -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	Mon Dec 13 18:31:15 2010 -0800
+++ b/scripts/strings/strmatch.m	Mon Dec 13 18:37:53 2010 -0800
@@ -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])