Mercurial > hg > octave-avbm
changeset 9622:40cbcdf12b54
fix broken tests
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Sun, 06 Sep 2009 08:06:54 +0200 |
parents | 3ee9029931b3 |
children | bc0739d02724 |
files | scripts/ChangeLog scripts/general/arrayfun.m src/ChangeLog src/DLD-FUNCTIONS/cellfun.cc |
diffstat | 4 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2009-09-06 Jaroslav Hajek <highegg@gmail.com> + + * general/arrayfun.m: Fix test. + 2009-09-05 John W. Eaton <jwe@octave.org> * plot/hold.m: Correctly toggle hold state. Set both figure and
--- a/scripts/general/arrayfun.m +++ b/scripts/general/arrayfun.m @@ -246,7 +246,7 @@ %% Input arguments can be of type numeric %!test -%! A = arrayfun (@(x,y) x>y, [1.1, 4.2], [3.1, 2+6*i]); +%! A = arrayfun (@(x,y) x>y, [1.1, 4.2], [3.1, 2+3*i]); %! assert (A, [false, true]); %!test %! A = arrayfun (@(x,y) x>y, [1.1, 4.2; 2, 4], [3.1, 2; 2, 4+2*i], "UniformOutput", true);
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-09-06 Jaroslav Hajek <highegg@gmail.com> + + * DLD-FUNCTIONS/cellfun.cc: Fix test. + 2009-09-06 Jaroslav Hajek <highegg@gmail.com> * OPERATORS/op-s-cs.cc: Use DEFCMPLXCMPOP_OP.
--- a/src/DLD-FUNCTIONS/cellfun.cc +++ b/src/DLD-FUNCTIONS/cellfun.cc @@ -743,7 +743,7 @@ %% Input arguments can be of type cell array of numeric %!test -%! A = cellfun (@(x,y) x>y, {1.1, 4.2}, {3.1, 2+6*i}); +%! A = cellfun (@(x,y) x>y, {1.1, 4.2}, {3.1, 2+3*i}); %! assert (A, [false, true]); %!test %! A = cellfun (@(x,y) x>y, {1.1, 4.2; 2, 4}, {3.1, 2; 2, 4+2*i}, \