Mercurial > hg > octave-nkf
changeset 19400:5f21e0bff135
Use %!testif HAVE_AMD for amd tests added in cset e99d7a2e7367
* amd.cc: Use %!testif HAVE_AMD for amd tests that were added in cset
e99d7a2e7367. Add regexp to match the appropriate error message when
building without SuiteSparse.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Fri, 03 Oct 2014 23:43:58 -0400 |
parents | 4d460b124be3 |
children | 827ac8b5ae07 |
files | libinterp/dldfcn/amd.cc |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/dldfcn/amd.cc +++ b/libinterp/dldfcn/amd.cc @@ -209,14 +209,14 @@ %! A = ones (20, 30); %! A2 = ones (30, 30); %! -%!test -%!error <matrix S must be square> amd (A) -%!error amd (A2, 2) -%!error <matrix S is corrupted> amd([]) -%!test +%!testif HAVE_AMD %! assert(amd (A2), [1:30]) %! opts.dense = 25; %! assert(amd (A2, opts), [1:30]) %! opts.aggressive = 1; %! assert(amd (A2, opts), [1:30]) + +%!error <matrix S must be square|not available in this version> amd (A) +%!error amd (A2, 2) +%!error <matrix S is corrupted|not available in this version> amd ([]) */