# HG changeset patch # User Rik # Date 1322012819 28800 # Node ID 521adfd775be19d32bc4afa8c7fd5bd70bbabaa5 # Parent 8d19194c4b1fcfac7265b402714fe18d0ee680c7 hadamard.m: Fix failing %!tests * hadamard.m: Remove reference to deleted function hnormalize(). Escape special characters in regular expression for %!error test. diff --git a/scripts/special-matrix/hadamard.m b/scripts/special-matrix/hadamard.m --- a/scripts/special-matrix/hadamard.m +++ b/scripts/special-matrix/hadamard.m @@ -90,7 +90,7 @@ case 5 h = h20 (); case 7 - h = hnormalize (h28 ()); + h = h28 (); otherwise error ("hadamard: N must be 2^k*p, for p = 1, 12, 20 or 28"); endswitch @@ -166,10 +166,10 @@ %!test %! for n = [1,2,4,8,12,24,48,20,28,2^9] %! h = hadamard(n); -%! assert (norm (h*h'-n*eye (n)), 0); +%! assert (norm (h*h' - n*eye (n)), 0); %! endfor %!error hadamard () %!error hadamard (1,2) -%!error hadamard (5) +%!error hadamard (5)