Mercurial > hg > octave-nkf
diff scripts/geometry/griddata3.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 | 522433b05f45 |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/scripts/geometry/griddata3.m +++ b/scripts/geometry/griddata3.m @@ -55,7 +55,7 @@ vi = reshape (vi, size (xi)); endfunction -%!test +%!testif HAVE_QHULL %! rand('state', 0); %! x = 2 * rand(1000, 1) - 1; %! y = 2 * rand(1000, 1) - 1; @@ -67,7 +67,7 @@ %! vv = vi - xi.^2 - yi.^2 - zi.^2; %! assert (max(abs(vv(:))), 0, 0.1) -%!test +%!testif HAVE_QHULL %! rand('state', 0); %! x = 2 * rand(1000, 1) - 1; %! y = 2 * rand(1000, 1) - 1;