]> gitweb.michael.orlitzky.com - octave.d.git/commitdiff
tests/preconditioned_conjugate_gradient_method_tests.m: fix test eval
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 7 Apr 2026 18:51:33 +0000 (14:51 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 7 Apr 2026 18:51:33 +0000 (14:51 -0400)
Plain unit_test() is better for true/false than unit_test_equals().

tests/preconditioned_conjugate_gradient_method_tests.m

index d30be5e57a0981d37f6900f78d71c9833766eb27..d0189de3ca75c399d4f8234041dcd5887701194a 100644 (file)
@@ -93,5 +93,5 @@ for n = [ 5, 10, 25, 50, 100 ]
   ## There's no good way to choose the tolerance here, since each
   ## individual algorithm terminates based on the (2,infinity)-norm of
   ## the gradient. So we use two orders of magnitude.
-  unit_test_equals(msg, true, diff <= sqrt(tolerance));
+  unit_test(msg, 1, diff <= sqrt(tolerance));
 end