Mercurial > octave
diff libinterp/corefcn/data.cc @ 32046:39700c1ea93e
maint: merge stable to default
author | Rik <rik@octave.org> |
---|---|
date | Thu, 20 Apr 2023 18:59:26 -0700 |
parents | fef004fa8575 f18da620ab4d |
children | 1203a2d81a42 |
line wrap: on
line diff
--- a/libinterp/corefcn/data.cc Thu Apr 20 16:49:31 2023 -0400 +++ b/libinterp/corefcn/data.cc Thu Apr 20 18:59:26 2023 -0700 @@ -5999,6 +5999,8 @@ %!assert (size (reshape (ones (15, 4, "single"), 1, 60)), [1, 60]) %!assert (size (reshape (ones (15, 4, "single"), 60, 1)), [60, 1]) +%!assert <*64080> (size (reshape (sparse (0, 1), 0, 0)), [0, 0]) + %!test %! s.a = 1; %! fail ("reshape (s, 2, 3)", "can't reshape 1x1 array to 2x3 array");