Mercurial > hg > octave-lojdl
changeset 12459:b3f9f98e7640
Fix interp1 tests according to spline update of 07e102029d2a
author | Thorsten Meyer <thorsten.meyier@gmx.de> |
---|---|
date | Sat, 19 Feb 2011 15:32:41 +0100 |
parents | 68daf2a0b56d |
children | 952e52dda82e |
files | scripts/ChangeLog scripts/general/interp1.m |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2011-02-19 Thorsten Meyer <thorsten.meyier@gmx.de> + + * general/interp1.m: Fix tests according to spline update of + changeset 07e102029d2a (see bug 31780) + 2011-02-17 Kai Habel <kai.habel@gmx.de> * plot/private/__add_default_menu__.m: Rename fltk_gui_mode here
--- a/scripts/general/interp1.m +++ b/scripts/general/interp1.m @@ -597,7 +597,7 @@ %!assert (interp1(1:2,1:2,1.4,"linear"),1.4); %!error interp1(1:3,1:3,1, "cubic"); %!assert (interp1(1:4,1:4,1.4,"cubic"),1.4); -%!error interp1(1:2,1:2,1, "spline"); +%!assert (interp1(1:2,1:2,1.1, "spline"), 1.1); %!assert (interp1(1:3,1:3,1.4,"spline"),1.4); %!error interp1(1,1,1, "*nearest"); @@ -606,7 +606,7 @@ %!assert (interp1(1:2:4,1:2:4,[0,1,1.4,3,4],"*linear"),[NA,1,1.4,3,NA]); %!error interp1(1:3,1:3,1, "*cubic"); %!assert (interp1(1:2:8,1:2:8,1.4,"*cubic"),1.4); -%!error interp1(1:2,1:2,1, "*spline"); +%!assert (interp1(1:2,1:2,1.3, "*spline"), 1.3); %!assert (interp1(1:2:6,1:2:6,1.4,"*spline"),1.4); %!assert (interp1([3,2,1],[3,2,2],2.5),2.5)