changeset 30945:e0aabe59c1aa

Add more BIST tests for bessel functions (Bug #62321) * besselj.cc (Fbesselj): Add BIST test for bug #48316. * besselj.cc (Fbesseli): Add BIST test from Octave mailing list.
author Rik <rik@octave.org>
date Mon, 18 Apr 2022 13:47:16 -0700
parents 4727765dbc89
children e7032ef9a9c3
files libinterp/corefcn/besselj.cc
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/besselj.cc	Mon Apr 18 13:02:35 2022 -0700
+++ b/libinterp/corefcn/besselj.cc	Mon Apr 18 13:47:16 2022 -0700
@@ -355,6 +355,10 @@
 
 /*
 %!# Function besselj is tested along with other bessels at the end of this file
+
+## besselj specific BIST
+%!assert <*48316> (! any (isnan (besselj (1, 10.^[5:12]))))
+
 */
 
 DEFUN (bessely, args, nargout,
@@ -466,6 +470,10 @@
 
 /*
 %!# Function besseli is tested along with other bessels at the end of this file
+
+## besseli specific BIST
+%!assert (! isinf (besseli (0, 700))) 
+
 */
 
 DEFUN (besselk, args, nargout,