Mercurial > hg > octave-lojdl
changeset 15521:e92dde30f754
test: Modify strsplit test suite to match new mapper function behavior (bug #37535).
* strsplit.m: Test for char(ones(1,0)) rather than numeric ones(1,0) when returning
an empty field.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 14 Oct 2012 20:54:53 -0700 |
parents | bcace51598ed |
children | bf466a60651f |
files | scripts/strings/strsplit.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/strings/strsplit.m +++ b/scripts/strings/strsplit.m @@ -104,7 +104,7 @@ %!assert (strsplit ("road to hell", " "), {"road", "to", "hell"}) %!assert (strsplit ("road to^hell", " ^"), {"road", "to", "hell"}) %!assert (strsplit ("road to--hell", " -", true), {"road", "to", "hell"}) -%!assert (strsplit (["a,bc";",de"], ","), {"a", "bc", ones(1,0), "de "}) +%!assert (strsplit (["a,bc";",de"], ","), {"a", "bc", char(ones(1,0)), "de "}) %!assert (strsplit (["a,bc";",de"], ",", true), {"a", "bc", "de "}) %!assert (strsplit (["a,bc";",de"], ", ", true), {"a", "bc", "de"})