Mercurial > hg > octave-nkf
diff scripts/strings/isstrprop.m @ 8442:502e58a0d44f
Fix docstrings, add examples, references and tests to string functions
author | Thorsten Meyer <thorsten.meyier@gmx.de> |
---|---|
date | Mon, 05 Jan 2009 08:11:03 +0100 |
parents | bb0f2353cff5 |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/scripts/strings/isstrprop.m +++ b/scripts/strings/isstrprop.m @@ -22,7 +22,7 @@ ## ## @example ## @group -## isstrprop ("abc123", "isalpha") +## isstrprop ("abc123", "alpha") ## @result{} [1, 1, 1, 0, 0, 0] ## @end group ## @end example @@ -116,3 +116,6 @@ endif endfunction + +%!error <invalid predicate> isstrprop ("abc123", "foo"); +%!assert (isstrprop ("abc123", "alpha"), logical ([1, 1, 1, 0, 0, 0])); \ No newline at end of file