Mercurial > jwe > octave
changeset 20811:5979314bb15a
Fix BIST tests for rows.
* data.cc (Frows): Fix BIST tests.
* data.cc (do_accumarray_minmax_fun): Fix typos in error() message.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 05 Dec 2015 15:10:49 -0800 |
parents | dc9039163760 |
children | d9ca869ca124 |
files | libinterp/corefcn/data.cc |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/data.cc Fri Dec 04 19:53:54 2015 -0800 +++ b/libinterp/corefcn/data.cc Sat Dec 05 15:10:49 2015 -0800 @@ -1914,9 +1914,9 @@ { octave_value retval; - // We may need to convert elements of the list to cells, so make a - // copy. This should be efficient, it is done mostly by incrementing - // reference counts. + // We may need to convert elements of the list to cells, so make a copy. + // This should be efficient, it is done mostly by incrementing reference + // counts. octave_value_list args = xargs; int n_args = args.length (); @@ -2906,12 +2906,12 @@ /* %!assert (rows (ones (2,5)), 2) %!assert (rows (ones (5,2)), 5) -%!assert (rows (ones (5,4,3,2)), 2) +%!assert (rows (ones (5,4,3,2)), 5) %!assert (rows (ones (3,4,5,2)), 3) %!assert (rows (cell (2,5)), 2) %!assert (rows (cell (5,2)), 5) -%!assert (rows (cell (5,4,3,2)), 2) +%!assert (rows (cell (5,4,3,2)), 5) %!assert (rows (cell (3,4,5,2)), 3) %!test @@ -2923,7 +2923,7 @@ %!assert (rows ("Hello World"), 1) %!assert (rows ([]), 0) -%!assert (rows (zeros (2,0), 2) +%!assert (rows (zeros (2,0), 2)) ## Test input validation %!error rows () @@ -7122,7 +7122,7 @@ print_usage (); if (! args(0).is_numeric_type ()) - error ("addumarray: first agument must be numeric"); + error ("accumarray: first argument must be numeric"); try {