Mercurial > hg > octave-lyh
diff scripts/deprecated/polyinteg.m @ 7411:83a8781b529d
[project @ 2008-01-22 21:52:25 by jwe]
author | jwe |
---|---|
date | Tue, 22 Jan 2008 21:52:26 +0000 |
parents | a1dbe9d80eee |
children | 8e5371d47da6 |
line wrap: on
line diff
--- a/scripts/deprecated/polyinteg.m +++ b/scripts/deprecated/polyinteg.m @@ -35,3 +35,12 @@ y = polyint (p); endfunction + +%!assert(all (all (polyinteg ([2, 2]) == [1, 2, 0]))); + +%!assert(isempty (polyinteg ([]))); + +%!assert(all (all (polyinteg (3) == [3, 0]))); + +%!error polyinteg ([1, 2; 3, 4]); +