Mercurial > hg > octave-nkf
changeset 12454:9337a5c234da
Fix tests in mean.m according to changeset 0f21f258aa17.
author | Thorsten Meyer <thorsten.meyier@gmx.de> |
---|---|
date | Wed, 16 Feb 2011 22:34:11 +0100 |
parents | 885f524d3771 |
children | 7b67bbf9dbbb |
files | scripts/ChangeLog scripts/statistics/base/mean.m |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2011-02-16 Thorsten Meyer <thorsten.meyier@gmx.de> + + * statistics/base/mean.m: Fix tests according to changeset 0f21f258aa17. + 2011-02-15 Konstantinos Poulios <logari81@gmail.com> * plot/__fltk_print__.m: Forward pipeline to drawnow instead of
--- a/scripts/statistics/base/mean.m +++ b/scripts/statistics/base/mean.m @@ -139,12 +139,12 @@ %!assert(mean ([2 8], 'g'), 4); %!assert(mean ([4 4 2], 'h'), 3); +%!assert(mean (logical ([1 0 1 1])), 0.75); %% Test input validation %!error mean (); %!error mean (1, 2, 3, 4); %!error mean ({1:5}); -%!error mean (true(1, 5)); %!error mean (1, 2, 3); %!error mean (1, ones(2,2)); %!error mean (1, 1.5);