Mercurial > hg > octave-lyh
diff scripts/geometry/griddatan.m @ 8153:ec0a13863eb7
Only run tests that depend on HDF5 and QHull if Octave was actually
linked against these libraries.
author | Soren Hauberg <hauberg@gmail.com> |
---|---|
date | Fri, 26 Sep 2008 13:23:02 -0400 |
parents | a1dbe9d80eee |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/scripts/geometry/griddatan.m +++ b/scripts/geometry/griddatan.m @@ -85,7 +85,7 @@ endfunction -%!test +%!testif HAVE_QHULL %! [xx,yy] = meshgrid(linspace(-1,1,32)); %! xi = [xx(:), yy(:)]; %! x = (2 * rand(100,2) - 1); @@ -95,7 +95,7 @@ %! zz2 = griddata(x(:,1),x(:,2),y,xi(:,1),xi(:,2),'linear'); %! assert (zz, zz2, 1e-10) -%!test +%!testif HAVE_QHULL %! [xx,yy] = meshgrid(linspace(-1,1,32)); %! xi = [xx(:), yy(:)]; %! x = (2 * rand(100,2) - 1);