Mercurial > hg > octave-lyh
changeset 10024:184060864627
allow ismatrix on character matrices
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 25 Dec 2009 22:31:25 +0100 |
parents | 73fc43e01f4c |
children | acd5e9df38f8 |
files | src/ChangeLog src/data.cc src/ov-str-mat.h |
diffstat | 3 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2009-12-25 Jaroslav Hajek <highegg@gmail.com> + + * ov-str-mat.h (octave_char_matrix_str::is_matrix_type): Remove + override. + * data.cc (Fismatrix): Update test. + 2009-12-25 Jaroslav Hajek <highegg@gmail.com> * DLD-FUNCTIONS/strfind.cc: New source.
--- a/src/data.cc +++ b/src/data.cc @@ -3375,9 +3375,9 @@ %!assert(ismatrix (single([1, 2, 3]))); %!assert(ismatrix (single([1, 2; 3, 4]))); -%!assert(ismatrix ("t"), false); -%!assert(ismatrix ("test"), false); -%!assert(ismatrix (["test"; "ing"]), false); +%!assert(ismatrix ("t")); +%!assert(ismatrix ("test")); +%!assert(ismatrix (["test"; "ing"])); %!test %! s.a = 1;