diff libinterp/corefcn/quadcc.cc @ 30995:1fcfe9443917

quadgk.m: Don't warn about failing to converge if second output ERR is requested (bug #62412) * quadgk.m: Document change in behavior (using the same language as for quadcc). Check number of outputs is less than 2 before issuing warning about failed convergence. Re-code BIST test not to issue a warning about using deprecated "inline" function. Add BIST test for bug #62412. * quadcc.cc (Fquadcc): Make BIST test for bug #62412 a fixed, regression if it fails. Change error bounds on test to be default relative tolerance.
author Rik <rik@octave.org>
date Wed, 11 May 2022 11:54:57 -0700
parents 347fd0653508
children 9a0e3f0b3823
line wrap: on
line diff
--- a/libinterp/corefcn/quadcc.cc	Wed May 11 09:45:31 2022 -0700
+++ b/libinterp/corefcn/quadcc.cc	Wed May 11 11:54:57 2022 -0700
@@ -2251,11 +2251,11 @@
 %! assert (class (quadcc (@sin, 0, single (1))), "single");
 %! assert (class (quadcc (@sin, single (0), single (1))), "single");
 
-%!test<62412>
+%!test <*62412>
 %! f = @(t) -1 ./ t.^1.1;
 %! fail ("quadcc (f, 1, Inf)", "warning", "Error tolerance not met");
 %! [q, err] = quadcc (f, 1, Inf);
-%! assert (err > 1);
+%! assert (err > 1e-5);
 
 ## Test input validation
 %!error quadcc ()