changeset 32450:1f77c3f61aea

chol.cc: Use three arguments for assert in self tests. * libinterp/corefcn/chol.cc: Use three arguments for assert to get information about actual deviation in output of failing tests. Missed in 3f48081aa034.
author Markus Mützel <markus.muetzel@gmx.de>
date Sun, 29 Oct 2023 14:28:43 +0100
parents 36d6af1923f7
children 943a95892df0
files libinterp/corefcn/chol.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/chol.cc	Fri Oct 27 18:20:27 2023 +0200
+++ b/libinterp/corefcn/chol.cc	Sun Oct 29 14:28:43 2023 +0100
@@ -764,7 +764,7 @@
 %!
 %! R1 = cholupdate (R1, u, "-");
 %! assert (norm (triu (R1)-R1, Inf), 0);
-%! assert (norm (R1 - R, Inf) < 1e1*eps);
+%! assert (norm (R1 - R, Inf), 0, 1e1*eps);
 
 %!test
 %! R = chol (Ac);
@@ -774,7 +774,7 @@
 %!
 %! R1 = cholupdate (R1, uc, "-");
 %! assert (norm (triu (R1)-R1, Inf), 0);
-%! assert (norm (R1 - R, Inf) < 1e1*eps);
+%! assert (norm (R1 - R, Inf), 0, 1e1*eps);
 
 %!test
 %! R = chol (single (A));