From 656ef011e19505a1fb256abc8da93216ea9395fe Mon Sep 17 00:00:00 2001 From: Ujjwal Verma Date: Wed, 29 Jul 2026 21:00:54 +0530 Subject: [PATCH 1/6] test: migrate math/base/special/acoversinf to ULP-based testing --- .../math/base/special/acoversinf/test/test.js | 26 ++++--------------- .../special/acoversinf/test/test.native.js | 26 ++++--------------- 2 files changed, 10 insertions(+), 42 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js index b5a6dead2cbd..b82064899fec 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js @@ -22,8 +22,8 @@ var tape = require( 'tape' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var isAlmostSameValuef = require( '@stdlib/number/float32/base/assert/is-almost-same-value' ); var randu = require( '@stdlib/random/base/randu' ); -var absf = require( '@stdlib/math/base/special/absf' ); var EPS = require( '@stdlib/constants/float32/eps' ); var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); var acoversinf = require( './../lib' ); @@ -45,8 +45,6 @@ tape( 'main export is a function', function test( t ) { tape( 'the function computes the inverse coversed sine', function test( t ) { var expected; - var delta; - var tol; var x; var y; var i; @@ -57,22 +55,14 @@ tape( 'the function computes the inverse coversed sine', function test( t ) { for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); - y = acoversinf( x[i] ); - if ( y === e ) { - t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e ); - } else { - delta = absf( y - e ); - tol = 230.0 * EPS * absf( e ); - t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); - } + y = acoversinf( x[ i ] ); + t.strictEqual( isAlmostSameValuef( y, e, 234 ), true, 'returns expected value' ); } t.end(); }); tape( 'the function computes the inverse coversed sine (small positive numbers)', function test( t ) { var expected; - var delta; - var tol; var x; var y; var i; @@ -83,14 +73,8 @@ tape( 'the function computes the inverse coversed sine (small positive numbers)' for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); - y = acoversinf( x[i] ); - if ( y === e ) { - t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e ); - } else { - delta = absf( y - e ); - tol = EPS * absf( e ); - t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); - } + y = acoversinf( x[ i ] ); + t.strictEqual( isAlmostSameValuef( y, e, 234 ), true, 'returns expected value' ); } t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js index c6db143074fd..7c23799e3aa4 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js @@ -23,8 +23,8 @@ var resolve = require( 'path' ).resolve; var tape = require( 'tape' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var isAlmostSameValuef = require( '@stdlib/number/float32/base/assert/is-almost-same-value' ); var randu = require( '@stdlib/random/base/randu' ); -var absf = require( '@stdlib/math/base/special/absf' ); var EPS = require( '@stdlib/constants/float32/eps' ); var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -54,8 +54,6 @@ tape( 'main export is a function', opts, function test( t ) { tape( 'the function computes the inverse coversed sine', opts, function test( t ) { var expected; - var delta; - var tol; var x; var y; var i; @@ -66,22 +64,14 @@ tape( 'the function computes the inverse coversed sine', opts, function test( t for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); - y = acoversinf( x[i] ); - if ( y === e ) { - t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e ); - } else { - delta = absf( y - e ); - tol = 230.0 * EPS * absf( e ); - t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); - } + y = acoversinf( x[ i ] ); + t.strictEqual( isAlmostSameValuef( y, e, 234 ), true, 'returns expected value' ); } t.end(); }); tape( 'the function computes the inverse coversed sine (small positive numbers)', opts, function test( t ) { var expected; - var delta; - var tol; var x; var y; var i; @@ -92,14 +82,8 @@ tape( 'the function computes the inverse coversed sine (small positive numbers)' for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); - y = acoversinf( x[i] ); - if ( y === e ) { - t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e ); - } else { - delta = absf( y - e ); - tol = EPS * absf( e ); - t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); - } + y = acoversinf( x[ i ] ); + t.strictEqual( isAlmostSameValuef( y, e, 234 ), true, 'returns expected value' ); } t.end(); }); From bf19ebe2da2268ed639f026cb12b0066fb01b3f8 Mon Sep 17 00:00:00 2001 From: Ujjwal Verma Date: Thu, 30 Jul 2026 14:00:52 +0530 Subject: [PATCH 2/6] test: decrease ULP to 233 to verify failure --- .../math/base/special/acoversinf/test/test.js | 4 +- .../special/acoversinf/test/test.native.js | 4 +- .../ndarray/base/diagonal/docs/types/test.ts | 92 ------------------- 3 files changed, 4 insertions(+), 96 deletions(-) delete mode 100644 lib/node_modules/@stdlib/ndarray/base/diagonal/docs/types/test.ts diff --git a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js index b82064899fec..8891f94ac399 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js @@ -56,7 +56,7 @@ tape( 'the function computes the inverse coversed sine', function test( t ) { for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); y = acoversinf( x[ i ] ); - t.strictEqual( isAlmostSameValuef( y, e, 234 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValuef( y, e, 233 ), true, 'returns expected value' ); } t.end(); }); @@ -74,7 +74,7 @@ tape( 'the function computes the inverse coversed sine (small positive numbers)' for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); y = acoversinf( x[ i ] ); - t.strictEqual( isAlmostSameValuef( y, e, 234 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValuef( y, e, 233 ), true, 'returns expected value' ); } t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js index 7c23799e3aa4..61fdf7df1b96 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js @@ -65,7 +65,7 @@ tape( 'the function computes the inverse coversed sine', opts, function test( t for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); y = acoversinf( x[ i ] ); - t.strictEqual( isAlmostSameValuef( y, e, 234 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValuef( y, e, 233 ), true, 'returns expected value' ); } t.end(); }); @@ -83,7 +83,7 @@ tape( 'the function computes the inverse coversed sine (small positive numbers)' for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); y = acoversinf( x[ i ] ); - t.strictEqual( isAlmostSameValuef( y, e, 234 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValuef( y, e, 233 ), true, 'returns expected value' ); } t.end(); }); diff --git a/lib/node_modules/@stdlib/ndarray/base/diagonal/docs/types/test.ts b/lib/node_modules/@stdlib/ndarray/base/diagonal/docs/types/test.ts deleted file mode 100644 index 017275efe4db..000000000000 --- a/lib/node_modules/@stdlib/ndarray/base/diagonal/docs/types/test.ts +++ /dev/null @@ -1,92 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2026 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import zeros = require( '@stdlib/ndarray/zeros' ); -import diagonal = require( './index' ); - - -// TESTS // - -// The function returns an ndarray... -{ - const x = zeros( [ 2, 2 ] ); - - diagonal( x, [ 0, 1 ], 0, false ); // $ExpectType float64ndarray -} - -// The compiler throws an error if the function is not provided a first argument which is an ndarray... -{ - diagonal( '5', [ 0, 1 ], 0, false ); // $ExpectError - diagonal( 5, [ 0, 1 ], 0, false ); // $ExpectError - diagonal( true, [ 0, 1 ], 0, false ); // $ExpectError - diagonal( false, [ 0, 1 ], 0, false ); // $ExpectError - diagonal( null, [ 0, 1 ], 0, false ); // $ExpectError - diagonal( {}, [ 0, 1 ], 0, false ); // $ExpectError - diagonal( [ '5' ], [ 0, 1 ], 0, false ); // $ExpectError - diagonal( ( x: number ): number => x, [ 0, 1 ], 0, false ); // $ExpectError -} - -// The compiler throws an error if the function is not provided a second argument which is an array-like object containing numbers... -{ - const x = zeros( [ 2, 2 ] ); - - diagonal( x, '5', 0, false ); // $ExpectError - diagonal( x, 5, 0, false ); // $ExpectError - diagonal( x, true, 0, false ); // $ExpectError - diagonal( x, false, 0, false ); // $ExpectError - diagonal( x, null, 0, false ); // $ExpectError - diagonal( x, {}, 0, false ); // $ExpectError - diagonal( x, [ '5' ], 0, false ); // $ExpectError - diagonal( x, ( x: number ): number => x, 0, false ); // $ExpectError -} - -// The compiler throws an error if the function is not provided a third argument which is a number... -{ - const x = zeros( [ 2, 2 ] ); - - diagonal( x, [ 0, 1 ], '5', false ); // $ExpectError - diagonal( x, [ 0, 1 ], true, false ); // $ExpectError - diagonal( x, [ 0, 1 ], false, false ); // $ExpectError - diagonal( x, [ 0, 1 ], null, false ); // $ExpectError - diagonal( x, [ 0, 1 ], {}, false ); // $ExpectError - diagonal( x, [ 0, 1 ], [], false ); // $ExpectError - diagonal( x, [ 0, 1 ], ( x: number ): number => x, false ); // $ExpectError -} - -// The compiler throws an error if the function is not provided a fourth argument which is a boolean... -{ - const x = zeros( [ 2, 2 ] ); - - diagonal( x, [ 0, 1 ], 0, '5' ); // $ExpectError - diagonal( x, [ 0, 1 ], 0, 5 ); // $ExpectError - diagonal( x, [ 0, 1 ], 0, null ); // $ExpectError - diagonal( x, [ 0, 1 ], 0, {} ); // $ExpectError - diagonal( x, [ 0, 1 ], 0, [] ); // $ExpectError - diagonal( x, [ 0, 1 ], 0, ( x: number ): number => x ); // $ExpectError -} - -// The compiler throws an error if the function is provided an unsupported number of arguments... -{ - const x = zeros( [ 2, 2 ] ); - - diagonal(); // $ExpectError - diagonal( x ); // $ExpectError - diagonal( x, [ 0, 1 ] ); // $ExpectError - diagonal( x, [ 0, 1 ], 0 ); // $ExpectError - diagonal( x, [ 0, 1 ], 0, false, {} ); // $ExpectError -} From 0509aa2e9b1c8688ad6362de602ec827cb9d777b Mon Sep 17 00:00:00 2001 From: Ujjwal Verma Date: Thu, 30 Jul 2026 14:09:36 +0530 Subject: [PATCH 3/6] test: migrate math/base/special/acoversinf to ULP-based testing --- .../@stdlib/math/base/special/acoversinf/test/test.js | 4 ++-- .../@stdlib/math/base/special/acoversinf/test/test.native.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js index 8891f94ac399..b82064899fec 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js @@ -56,7 +56,7 @@ tape( 'the function computes the inverse coversed sine', function test( t ) { for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); y = acoversinf( x[ i ] ); - t.strictEqual( isAlmostSameValuef( y, e, 233 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValuef( y, e, 234 ), true, 'returns expected value' ); } t.end(); }); @@ -74,7 +74,7 @@ tape( 'the function computes the inverse coversed sine (small positive numbers)' for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); y = acoversinf( x[ i ] ); - t.strictEqual( isAlmostSameValuef( y, e, 233 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValuef( y, e, 234 ), true, 'returns expected value' ); } t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js index 61fdf7df1b96..7c23799e3aa4 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js @@ -65,7 +65,7 @@ tape( 'the function computes the inverse coversed sine', opts, function test( t for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); y = acoversinf( x[ i ] ); - t.strictEqual( isAlmostSameValuef( y, e, 233 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValuef( y, e, 234 ), true, 'returns expected value' ); } t.end(); }); @@ -83,7 +83,7 @@ tape( 'the function computes the inverse coversed sine (small positive numbers)' for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); y = acoversinf( x[ i ] ); - t.strictEqual( isAlmostSameValuef( y, e, 233 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValuef( y, e, 234 ), true, 'returns expected value' ); } t.end(); }); From 6f33b17e426501d52f969a8add980a20ff85a15f Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 30 Jul 2026 14:58:50 -0700 Subject: [PATCH 4/6] Discard changes to lib/node_modules/@stdlib/ndarray/base/diagonal/docs/types/test.ts --- .../ndarray/base/diagonal/docs/types/test.ts | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 lib/node_modules/@stdlib/ndarray/base/diagonal/docs/types/test.ts diff --git a/lib/node_modules/@stdlib/ndarray/base/diagonal/docs/types/test.ts b/lib/node_modules/@stdlib/ndarray/base/diagonal/docs/types/test.ts new file mode 100644 index 000000000000..017275efe4db --- /dev/null +++ b/lib/node_modules/@stdlib/ndarray/base/diagonal/docs/types/test.ts @@ -0,0 +1,92 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import zeros = require( '@stdlib/ndarray/zeros' ); +import diagonal = require( './index' ); + + +// TESTS // + +// The function returns an ndarray... +{ + const x = zeros( [ 2, 2 ] ); + + diagonal( x, [ 0, 1 ], 0, false ); // $ExpectType float64ndarray +} + +// The compiler throws an error if the function is not provided a first argument which is an ndarray... +{ + diagonal( '5', [ 0, 1 ], 0, false ); // $ExpectError + diagonal( 5, [ 0, 1 ], 0, false ); // $ExpectError + diagonal( true, [ 0, 1 ], 0, false ); // $ExpectError + diagonal( false, [ 0, 1 ], 0, false ); // $ExpectError + diagonal( null, [ 0, 1 ], 0, false ); // $ExpectError + diagonal( {}, [ 0, 1 ], 0, false ); // $ExpectError + diagonal( [ '5' ], [ 0, 1 ], 0, false ); // $ExpectError + diagonal( ( x: number ): number => x, [ 0, 1 ], 0, false ); // $ExpectError +} + +// The compiler throws an error if the function is not provided a second argument which is an array-like object containing numbers... +{ + const x = zeros( [ 2, 2 ] ); + + diagonal( x, '5', 0, false ); // $ExpectError + diagonal( x, 5, 0, false ); // $ExpectError + diagonal( x, true, 0, false ); // $ExpectError + diagonal( x, false, 0, false ); // $ExpectError + diagonal( x, null, 0, false ); // $ExpectError + diagonal( x, {}, 0, false ); // $ExpectError + diagonal( x, [ '5' ], 0, false ); // $ExpectError + diagonal( x, ( x: number ): number => x, 0, false ); // $ExpectError +} + +// The compiler throws an error if the function is not provided a third argument which is a number... +{ + const x = zeros( [ 2, 2 ] ); + + diagonal( x, [ 0, 1 ], '5', false ); // $ExpectError + diagonal( x, [ 0, 1 ], true, false ); // $ExpectError + diagonal( x, [ 0, 1 ], false, false ); // $ExpectError + diagonal( x, [ 0, 1 ], null, false ); // $ExpectError + diagonal( x, [ 0, 1 ], {}, false ); // $ExpectError + diagonal( x, [ 0, 1 ], [], false ); // $ExpectError + diagonal( x, [ 0, 1 ], ( x: number ): number => x, false ); // $ExpectError +} + +// The compiler throws an error if the function is not provided a fourth argument which is a boolean... +{ + const x = zeros( [ 2, 2 ] ); + + diagonal( x, [ 0, 1 ], 0, '5' ); // $ExpectError + diagonal( x, [ 0, 1 ], 0, 5 ); // $ExpectError + diagonal( x, [ 0, 1 ], 0, null ); // $ExpectError + diagonal( x, [ 0, 1 ], 0, {} ); // $ExpectError + diagonal( x, [ 0, 1 ], 0, [] ); // $ExpectError + diagonal( x, [ 0, 1 ], 0, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const x = zeros( [ 2, 2 ] ); + + diagonal(); // $ExpectError + diagonal( x ); // $ExpectError + diagonal( x, [ 0, 1 ] ); // $ExpectError + diagonal( x, [ 0, 1 ], 0 ); // $ExpectError + diagonal( x, [ 0, 1 ], 0, false, {} ); // $ExpectError +} From aca11b3906a5b8da0a343f0a47ff0dc7326a9b2f Mon Sep 17 00:00:00 2001 From: Ujjwal Verma Date: Fri, 31 Jul 2026 10:56:36 +0530 Subject: [PATCH 5/6] test: decrease ULP to 2 for small positive numbers block --- .../@stdlib/math/base/special/acoversinf/test/test.js | 2 +- .../@stdlib/math/base/special/acoversinf/test/test.native.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js index b82064899fec..2233c45dd179 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js @@ -74,7 +74,7 @@ tape( 'the function computes the inverse coversed sine (small positive numbers)' for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); y = acoversinf( x[ i ] ); - t.strictEqual( isAlmostSameValuef( y, e, 234 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValuef( y, e, 2 ), true, 'returns expected value' ); } t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js index 7c23799e3aa4..927ed841c407 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js @@ -83,7 +83,7 @@ tape( 'the function computes the inverse coversed sine (small positive numbers)' for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); y = acoversinf( x[ i ] ); - t.strictEqual( isAlmostSameValuef( y, e, 234 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValuef( y, e, 2 ), true, 'returns expected value' ); } t.end(); }); From 02a10ece5a634da4f030068a3b1bc608e1fb6568 Mon Sep 17 00:00:00 2001 From: Ujjwal Verma Date: Fri, 31 Jul 2026 10:58:45 +0530 Subject: [PATCH 6/6] test: decrease ULP to 1 for small positive numbers block --- .../@stdlib/math/base/special/acoversinf/test/test.js | 2 +- .../@stdlib/math/base/special/acoversinf/test/test.native.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js index 2233c45dd179..e08b24feb8aa 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.js @@ -74,7 +74,7 @@ tape( 'the function computes the inverse coversed sine (small positive numbers)' for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); y = acoversinf( x[ i ] ); - t.strictEqual( isAlmostSameValuef( y, e, 2 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValuef( y, e, 1 ), true, 'returns expected value' ); } t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js index 927ed841c407..1b358dd17464 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acoversinf/test/test.native.js @@ -83,7 +83,7 @@ tape( 'the function computes the inverse coversed sine (small positive numbers)' for ( i = 0; i < x.length; i++ ) { e = float64ToFloat32( expected[ i ] ); y = acoversinf( x[ i ] ); - t.strictEqual( isAlmostSameValuef( y, e, 2 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValuef( y, e, 1 ), true, 'returns expected value' ); } t.end(); });