Mercurial > hg > octave-terminal
changeset 12926:838ada8779a5
Fix brain-o in sqrtm test
author | Jordi Gutiérrez Hermoso <jordigh@gmail.com> |
---|---|
date | Fri, 05 Aug 2011 12:35:29 -0500 |
parents | 1c71c9bf0570 |
children | 0dc4d9f1366c |
files | src/DLD-FUNCTIONS/sqrtm.cc |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/sqrtm.cc +++ b/src/DLD-FUNCTIONS/sqrtm.cc @@ -259,7 +259,9 @@ ## The following two tests are from the reference in the docstring above. -%!assert (any (isnan (sqrtm (x))(:) )) +%!test +%! x = [0 1; 0 0]; +%! assert (any (isnan (sqrtm (x))(:) )) %!test %! x = eye (4); x(2,2) = x(3,3) = 2^-26; x(1,4) = 1;