Mercurial > octave-nkf
diff test/build-sparse-tests.sh @ 19450:06b23f224f52
fix problem with changeset e354372e20f2 (bug #43855)
* Sparse.cc (Sparse<T>::index (const idx_vector&, bool)): Also smash
dimensions when converting index to array.
* build-sparse-tests.sh: Update indexing test.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 21 Dec 2014 17:38:14 -0500 |
parents | 6ca096827123 |
children | 0e1f5a750d00 |
line wrap: on
line diff
--- a/test/build-sparse-tests.sh Sun Dec 21 17:49:28 2014 -0500 +++ b/test/build-sparse-tests.sh Sun Dec 21 17:38:14 2014 -0500 @@ -855,7 +855,7 @@ %!assert (as(idx'), sparse (af(idx'))); %!assert (as(flipud (idx(:))), sparse (af(flipud (idx(:))))) %!assert (as([idx,idx]), sparse (af([idx,idx]))) -%!error (as(reshape ([idx;idx], [1,length(idx),2]))) +%!assert (as(reshape ([idx;idx], [1,length(idx),2])), sparse(af(reshape ([idx;idx], [1,length(idx),2])))) %% Slice tests %!assert (as(ridx,cidx), sparse (af(ridx,cidx)))