Mercurial > hg > octave-terminal
changeset 12861:5ad509db825b
test: Tests for bug #32683 involving incorrect ndarray concatenation
* data.cc: Tests for bug #32683
author | Alois Schlögl |
---|---|
date | Sun, 17 Jul 2011 17:42:56 -0700 |
parents | abd4093753e0 |
children | a9d292ce5489 |
files | src/data.cc |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/data.cc +++ b/src/data.cc @@ -1943,6 +1943,10 @@ %!error <dimension mismatch> cat (3, cat (3, [], []), [1,2;3,4]); %!error <dimension mismatch> cat (3, zeros (0, 0, 2), [1,2;3,4]); +%%% for this bug: http://savannah.gnu.org/bugs/?32683 +%!assert ([zeros(3,2,2); ones(1,2,2)], repmat([0;0;0;1],[1,2,2]) ); +%!assert ([zeros(3,2,2); ones(1,2,2)], vertcat(zeros(3,2,2), ones(1,2,2)) ); + */ static octave_value