Mercurial > hg > octave-lojdl
changeset 9140:c309e028185e
vander.m: update tests
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 20 Apr 2009 12:21:34 -0400 |
parents | 829724a7f5f3 |
children | c1fff751b5a8 |
files | scripts/ChangeLog scripts/special-matrix/vander.m |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2009-04-20 John W. Eaton <jwe@octave.org> + + * special-matrix/vander.m: Update tests. + 2009-04-20 Jaroslav Hajek <highegg@gmail.com> * special-matrix/vander.m: Allow second argument.
--- a/scripts/special-matrix/vander.m +++ b/scripts/special-matrix/vander.m @@ -86,9 +86,12 @@ %! && vander ([1, 2, 3]) == [1, 1, 1; 4, 2, 1; 9, 3, 1] %! && vander ([1, 2, 3]*i) == [-1, i, 1; -4, 2i, 1; -9, 3i, 1])); +%!assert(vander (2, 3), [4, 2, 1]) +%!assert(vander ([2, 3], 3), [4, 2, 1; 9, 3, 1]) + %!error vander ([1, 2; 3, 4]); %!error vander (); -%!error vander (1, 2); +%!error vander (1, 2, 3);