diff scripts/strings/strmatch.m @ 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 d7fbb08e28cf
children c776f063fefe
line wrap: on
line diff
--- 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])