Mercurial > hg > octave-nkf
changeset 13913:521adfd775be
hadamard.m: Fix failing %!tests
* hadamard.m: Remove reference to deleted function hnormalize().
Escape special characters in regular expression for %!error test.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 22 Nov 2011 17:46:59 -0800 |
parents | 8d19194c4b1f |
children | 4b1ce071f504 |
files | scripts/special-matrix/hadamard.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 <N must be 2^k*p> hadamard (5) +%!error <N must be 2\^k\*p> hadamard (5)