diff --git a/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/benchmark.js index 0f488d22f3fe..c4351c76a7d2 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/benchmark.js @@ -21,7 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pkg = require( './../package.json' ).name; var floorsd = require( './../lib' ); @@ -34,10 +34,11 @@ bench( pkg, function benchmark( b ) { var y; var i; + x = uniform( 100, -5.0e6, 5.0e6 ); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu()*1.0e7 ) - 5.0e6; - y = floorsd( x, 2, 2 ); + y = floorsd( x[ i%x.length ], 2, 2 ); if ( isnan( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/benchmark.native.js index a3b8a3eaf6dc..b327215df878 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/benchmark.native.js @@ -22,7 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; @@ -43,10 +43,11 @@ bench( pkg+'::native', opts, function benchmark( b ) { var y; var i; + x = uniform( 100, -5.0e6, 5.0e6 ); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu() * 1.0e7 ) - 5.0e6; - y = floorsd( x, 2, 2 ); + y = floorsd( x[ i%x.length ], 2, 2 ); if ( isnan( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/c/native/benchmark.c index 043c707d4dc5..919b37f8b99a 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/c/native/benchmark.c @@ -91,15 +91,18 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x; + double x[ 100 ]; double y; double t; int i; + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 1.0e7 * rand_double() ) - 5.0e6; + } + t = tic(); for ( i = 0; i < ITERATIONS; i++ ) { - x = ( 1.0e7 * rand_double() ) - 5.0e6; - y = stdlib_base_floorsd( x, 2, 2 ); + y = stdlib_base_floorsd( x[ i%100 ], 2, 2 ); if ( y != y ) { printf( "should not return NaN\n" ); break; diff --git a/lib/node_modules/@stdlib/math/base/special/floorsd/test/test.js b/lib/node_modules/@stdlib/math/base/special/floorsd/test/test.js index bd78fe647591..e83af15ce919 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorsd/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/floorsd/test/test.js @@ -42,25 +42,25 @@ tape( 'the function returns `NaN` if provided `NaN`', function test( t ) { var v; v = floorsd( NaN, 2, 10 ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); v = floorsd( 12368.0, NaN, 10 ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); v = floorsd( NaN, NaN, 10 ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); v = floorsd( NaN, NaN, 10 ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); v = floorsd( NaN, 2, 10 ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); v = floorsd( 3.14, NaN, 10 ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); v = floorsd( 3.14, 2, NaN ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); t.end(); }); @@ -69,10 +69,10 @@ tape( 'the function returns `NaN` if provided `n = +-infinity`', function test( var v; v = floorsd( PI, PINF, 10 ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); v = floorsd( PI, NINF, 10 ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); t.end(); }); @@ -81,10 +81,10 @@ tape( 'the function returns `NaN` if provided `n < 1`', function test( t ) { var v; v = floorsd( PI, 0, 10 ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); v = floorsd( PI, -1, 10 ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); t.end(); }); @@ -93,10 +93,10 @@ tape( 'the function returns `NaN` if provided `b = +-infinity`', function test( var v; v = floorsd( PI, 2, PINF ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); v = floorsd( PI, 2, NINF ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); t.end(); }); @@ -105,23 +105,23 @@ tape( 'the function returns `NaN` if provided `b <= 0`', function test( t ) { var v; v = floorsd( PI, 2, 0 ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); v = floorsd( PI, 2, -1 ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); t.end(); }); tape( 'the function returns `+infinity` if provided `+infinity`', function test( t ) { var v = floorsd( PINF, 5, 10 ); - t.strictEqual( v, PINF, 'returns +infinity' ); + t.strictEqual( v, PINF, 'returns expected value' ); t.end(); }); tape( 'the function returns `-infinity` if provided `-infinity`', function test( t ) { var v = floorsd( NINF, 3, 10 ); - t.strictEqual( v, NINF, 'returns -infinity' ); + t.strictEqual( v, NINF, 'returns expected value' ); t.end(); }); @@ -129,10 +129,10 @@ tape( 'the function returns `-0` if provided `-0`', function test( t ) { var v; v = floorsd( -0.0, 1, 10 ); - t.strictEqual( isNegativeZero( v ), true, 'returns -0' ); + t.strictEqual( isNegativeZero( v ), true, 'returns expected value' ); v = floorsd( -0.0, 2, 10 ); - t.strictEqual( isNegativeZero( v ), true, 'returns -0' ); + t.strictEqual( isNegativeZero( v ), true, 'returns expected value' ); t.end(); }); @@ -141,10 +141,10 @@ tape( 'the function returns `+0` if provided `+0`', function test( t ) { var v; v = floorsd( 0.0, 1, 10 ); - t.strictEqual( isPositiveZero( v ), true, 'returns +0' ); + t.strictEqual( isPositiveZero( v ), true, 'returns expected value' ); v = floorsd( +0.0, 2, 10 ); - t.strictEqual( isPositiveZero( v ), true, 'returns +0' ); + t.strictEqual( isPositiveZero( v ), true, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/floorsd/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/floorsd/test/test.native.js index a38d8ff85d32..0ea74889aeff 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorsd/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/floorsd/test/test.native.js @@ -93,13 +93,13 @@ tape( 'the function returns `NaN` if provided `b <= 0`', opts, function test( t tape( 'the function returns `+infinity` if provided `+infinity`', opts, function test( t ) { var v = floorsd( PINF, 5, 10 ); - t.strictEqual( v, PINF, 'returns +infinity' ); + t.strictEqual( v, PINF, 'returns expected value' ); t.end(); }); tape( 'the function returns `-infinity` if provided `-infinity`', opts, function test( t ) { var v = floorsd( NINF, 3, 10 ); - t.strictEqual( v, NINF, 'returns -infinity' ); + t.strictEqual( v, NINF, 'returns expected value' ); t.end(); }); @@ -107,10 +107,10 @@ tape( 'the function returns `-0` if provided `-0`', opts, function test( t ) { var v; v = floorsd( -0.0, 1, 10 ); - t.strictEqual( isNegativeZero( v ), true, 'returns -0' ); + t.strictEqual( isNegativeZero( v ), true, 'returns expected value' ); v = floorsd( -0.0, 2, 10 ); - t.strictEqual( isNegativeZero( v ), true, 'returns -0' ); + t.strictEqual( isNegativeZero( v ), true, 'returns expected value' ); t.end(); }); @@ -119,10 +119,10 @@ tape( 'the function returns `+0` if provided `+0`', opts, function test( t ) { var v; v = floorsd( 0.0, 1, 10 ); - t.strictEqual( isPositiveZero( v ), true, 'returns +0' ); + t.strictEqual( isPositiveZero( v ), true, 'returns expected value' ); v = floorsd( +0.0, 2, 10 ); - t.strictEqual( isPositiveZero( v ), true, 'returns +0' ); + t.strictEqual( isPositiveZero( v ), true, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/inv/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/inv/benchmark/benchmark.js index 69d0ac80133d..180bec1bd6ba 100644 --- a/lib/node_modules/@stdlib/math/base/special/inv/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/math/base/special/inv/benchmark/benchmark.js @@ -21,7 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pkg = require( './../package.json' ).name; var inv = require( './../lib' ); @@ -34,10 +34,11 @@ bench( pkg, function benchmark( b ) { var y; var i; + x = uniform( 100, -500.0, 500.0 ); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu()*1000.0 ) - 500.0; - y = inv( x ); + y = inv( x[ i%x.length ] ); if ( isnan( y ) ) { b.fail( 'should not return NaN' ); } @@ -55,10 +56,11 @@ bench( pkg+'::built-in', function benchmark( b ) { var y; var i; + x = uniform( 100, -500.0, 500.0 ); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu()*1000.0 ) - 500.0; - y = 1.0 / x; + y = 1.0 / x[ i%x.length ]; if ( isnan( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/inv/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/inv/benchmark/benchmark.native.js index 054772acb850..181935813fb8 100644 --- a/lib/node_modules/@stdlib/math/base/special/inv/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/math/base/special/inv/benchmark/benchmark.native.js @@ -22,7 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; @@ -43,10 +43,11 @@ bench( pkg+'::native', opts, function benchmark( b ) { var y; var i; + x = uniform( 100, -500.0, 500.0 ); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu()*1000.0 ) - 500.0; - y = inv( x ); + y = inv( x[ i%x.length ] ); if ( isnan( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/benchmark.c index b17650e31fc1..acc97686f94d 100644 --- a/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/benchmark.c @@ -100,15 +100,18 @@ double inv( double x ) { */ static double benchmark( void ) { double elapsed; - double x; + double x[ 100 ]; double y; double t; int i; + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 1000.0*rand_double() ) - 500.0; + } + t = tic(); for ( i = 0; i < ITERATIONS; i++ ) { - x = ( 1000.0*rand_double() ) - 500.0; - y = inv( x ); + y = inv( x[ i%100 ] ); if ( y != y ) { printf( "should not return NaN\n" ); break; diff --git a/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/native/benchmark.c index 47a0fa3284f2..5933dfd90150 100644 --- a/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/native/benchmark.c @@ -91,15 +91,18 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x; + double x[ 100 ]; double y; double t; int i; + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 1000.0*rand_double() ) - 500.0; + } + t = tic(); for ( i = 0; i < ITERATIONS; i++ ) { - x = ( 1000.0*rand_double() ) - 500.0; - y = stdlib_base_inv( x ); + y = stdlib_base_inv( x[ i%100 ] ); if ( y != y ) { printf( "should not return NaN\n" ); break; diff --git a/lib/node_modules/@stdlib/math/base/special/inv/test/test.js b/lib/node_modules/@stdlib/math/base/special/inv/test/test.js index a378d6e3e9ca..d3e9111f421d 100644 --- a/lib/node_modules/@stdlib/math/base/special/inv/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/inv/test/test.js @@ -44,12 +44,12 @@ tape( 'the function computes the multiplicative inverse of a number', function t }); tape( 'the function computes the multiplicative inverse of negative infinity', function test( t ) { - t.strictEqual( isNegativeZero( inv( NINF ) ), true, 'returns negative zero' ); + t.strictEqual( isNegativeZero( inv( NINF ) ), true, 'returns expected value' ); t.end(); }); tape( 'the function computes the multiplicative inverse of positive infinity', function test( t ) { - t.strictEqual( isPositiveZero( inv( PINF ) ), true, 'returns positive zero' ); + t.strictEqual( isPositiveZero( inv( PINF ) ), true, 'returns expected value' ); t.end(); }); @@ -65,6 +65,6 @@ tape( 'the function computes the multiplicative inverse of negative zero', funct tape( 'if provided `NaN`, the function returns `NaN`', function test( t ) { var v = inv( NaN ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/inv/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/inv/test/test.native.js index 6158be28f42d..9c9a1a57d78a 100644 --- a/lib/node_modules/@stdlib/math/base/special/inv/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/inv/test/test.native.js @@ -53,12 +53,12 @@ tape( 'the function computes the multiplicative inverse of a number', opts, func }); tape( 'the function computes the multiplicative inverse of negative infinity', opts, function test( t ) { - t.strictEqual( isNegativeZero( inv( NINF ) ), true, 'returns negative zero' ); + t.strictEqual( isNegativeZero( inv( NINF ) ), true, 'returns expected value' ); t.end(); }); tape( 'the function computes the multiplicative inverse of positive infinity', opts, function test( t ) { - t.strictEqual( isPositiveZero( inv( PINF ) ), true, 'returns positive zero' ); + t.strictEqual( isPositiveZero( inv( PINF ) ), true, 'returns expected value' ); t.end(); }); @@ -74,6 +74,6 @@ tape( 'the function computes the multiplicative inverse of negative zero', opts, tape( 'if provided `NaN`, the function returns `NaN`', opts, function test( t ) { var v = inv( NaN ); - t.strictEqual( isnan( v ), true, 'returns NaN' ); + t.strictEqual( isnan( v ), true, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/invf/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/invf/benchmark/benchmark.js index 4edab7873871..8515902f79ef 100644 --- a/lib/node_modules/@stdlib/math/base/special/invf/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/math/base/special/invf/benchmark/benchmark.js @@ -21,7 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pkg = require( './../package.json' ).name; var invf = require( './../lib' ); @@ -34,10 +34,13 @@ bench( pkg, function benchmark( b ) { var y; var i; + x = uniform( 100, -500.0, 500.0, { + 'dtype': 'float32' + }); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu()*1000.0 ) - 500.0; - y = invf( x ); + y = invf( x[ i%x.length ] ); if ( isnanf( y ) ) { b.fail( 'should not return NaN' ); } @@ -55,10 +58,13 @@ bench( pkg+'::built-in', function benchmark( b ) { var y; var i; + x = uniform( 100, -500.0, 500.0, { + 'dtype': 'float32' + }); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu()*1000.0 ) - 500.0; - y = 1.0 / x; + y = 1.0 / x[ i%x.length ]; if ( isnanf( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/invf/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/invf/benchmark/benchmark.native.js index f2a2c8f40aa0..fa38238aaa55 100644 --- a/lib/node_modules/@stdlib/math/base/special/invf/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/math/base/special/invf/benchmark/benchmark.native.js @@ -22,7 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; @@ -43,10 +43,13 @@ bench( pkg+'::native', opts, function benchmark( b ) { var y; var i; + x = uniform( 100, -500.0, 500.0, { + 'dtype': 'float32' + }); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu()*1000.0 ) - 500.0; - y = invf( x ); + y = invf( x[ i%x.length ] ); if ( isnanf( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/benchmark.c index 70f3ef0da539..da2e54d06b0e 100644 --- a/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/benchmark.c @@ -101,14 +101,17 @@ float invf( float x ) { static double benchmark( void ) { double elapsed; double t; - float x; + float x[ 100 ]; float y; int i; + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 1000.0f*rand_float() ) - 500.0f; + } + t = tic(); for ( i = 0; i < ITERATIONS; i++ ) { - x = ( 1000.0f*rand_float() ) - 500.0f; - y = invf( x ); + y = invf( x[ i%100 ] ); if ( y != y ) { printf( "should not return NaN\n" ); break; diff --git a/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/native/benchmark.c index 09e547c681b0..638a2e863cf7 100644 --- a/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/native/benchmark.c @@ -92,14 +92,17 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x; + float x[ 100 ]; float y; int i; + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 1000.0f*rand_float() ) - 500.0f; + } + t = tic(); for ( i = 0; i < ITERATIONS; i++ ) { - x = ( 1000.0f*rand_float() ) - 500.0f; - y = stdlib_base_invf( x ); + y = stdlib_base_invf( x[ i%100 ] ); if ( y != y ) { printf( "should not return NaN\n" ); break; diff --git a/lib/node_modules/@stdlib/math/base/special/invf/test/test.js b/lib/node_modules/@stdlib/math/base/special/invf/test/test.js index 8c60c9c98933..23af5504953a 100644 --- a/lib/node_modules/@stdlib/math/base/special/invf/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/invf/test/test.js @@ -44,12 +44,12 @@ tape( 'the function computes the multiplicative inverse of a number', function t }); tape( 'the function computes the multiplicative inverse of negative infinity', function test( t ) { - t.strictEqual( isNegativeZerof( invf( NINF ) ), true, 'returns negative zero' ); + t.strictEqual( isNegativeZerof( invf( NINF ) ), true, 'returns expected value' ); t.end(); }); tape( 'the function computes the multiplicative inverse of positive infinity', function test( t ) { - t.strictEqual( isPositiveZerof( invf( PINF ) ), true, 'returns positive zero' ); + t.strictEqual( isPositiveZerof( invf( PINF ) ), true, 'returns expected value' ); t.end(); }); @@ -65,6 +65,6 @@ tape( 'the function computes the multiplicative inverse of negative zero', funct tape( 'if provided `NaN`, the function returns `NaN`', function test( t ) { var v = invf( NaN ); - t.strictEqual( isnanf( v ), true, 'returns NaN' ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/invf/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/invf/test/test.native.js index f6afdae46822..c3ad3dbf1607 100644 --- a/lib/node_modules/@stdlib/math/base/special/invf/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/invf/test/test.native.js @@ -53,12 +53,12 @@ tape( 'the function computes the multiplicative inverse of a number', opts, func }); tape( 'the function computes the multiplicative inverse of negative infinity', opts, function test( t ) { - t.strictEqual( isNegativeZerof( invf( NINF ) ), true, 'returns negative zero' ); + t.strictEqual( isNegativeZerof( invf( NINF ) ), true, 'returns expected value' ); t.end(); }); tape( 'the function computes the multiplicative inverse of positive infinity', opts, function test( t ) { - t.strictEqual( isPositiveZerof( invf( PINF ) ), true, 'returns positive zero' ); + t.strictEqual( isPositiveZerof( invf( PINF ) ), true, 'returns expected value' ); t.end(); }); @@ -74,6 +74,6 @@ tape( 'the function computes the multiplicative inverse of negative zero', opts, tape( 'if provided `NaN`, the function returns `NaN`', opts, function test( t ) { var v = invf( NaN ); - t.strictEqual( isnanf( v ), true, 'returns NaN' ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); t.end(); });