Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions lib/node_modules/@stdlib/math/base/special/asind/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
var uniform = require( '@stdlib/random/base/uniform' );
var abs = require( '@stdlib/math/base/special/abs' );
var EPS = require( '@stdlib/constants/float64/eps' );
var isNegativeZero = require( '@stdlib/assert/is-negative-zero' );
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
var asind = require( './../lib' );


Expand Down Expand Up @@ -117,3 +119,15 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', functi
}
t.end();
});

tape( 'the function returns `-0` if provided `-0`', function test( t ) {
var v = asind( -0.0 );
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
t.end();
});

tape( 'the function returns `+0` if provided `+0`', function test( t ) {
var v = asind( 0.0 );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
var uniform = require( '@stdlib/random/base/uniform' );
var abs = require( '@stdlib/math/base/special/abs' );
var EPS = require( '@stdlib/constants/float64/eps' );
var isNegativeZero = require( '@stdlib/assert/is-negative-zero' );
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
var tryRequire = require( '@stdlib/utils/try-require' );


Expand Down Expand Up @@ -126,3 +128,15 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', opts,
}
t.end();
});

tape( 'the function returns `-0` if provided `-0`', opts, function test( t ) {
var v = asind( -0.0 );
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
t.end();
});

tape( 'the function returns `+0` if provided `+0`', opts, function test( t ) {
var v = asind( 0.0 );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
t.end();
});
14 changes: 14 additions & 0 deletions lib/node_modules/@stdlib/math/base/special/asindf/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ var uniform = require( '@stdlib/random/base/uniform' );
var abs = require( '@stdlib/math/base/special/abs' );
var EPS = require( '@stdlib/constants/float32/eps' );
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
var isNegativeZero = require( '@stdlib/assert/is-negative-zero' );
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
var asindf = require( './../lib' );


Expand Down Expand Up @@ -122,3 +124,15 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', functi
}
t.end();
});

tape( 'the function returns `-0` if provided `-0`', function test( t ) {
var v = asindf( -0.0 );
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
t.end();
});

tape( 'the function returns `+0` if provided `+0`', function test( t ) {
var v = asindf( 0.0 );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ var uniform = require( '@stdlib/random/base/uniform' );
var abs = require( '@stdlib/math/base/special/abs' );
var EPS = require( '@stdlib/constants/float32/eps' );
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
var isNegativeZero = require( '@stdlib/assert/is-negative-zero' );
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
var tryRequire = require( '@stdlib/utils/try-require' );


Expand Down Expand Up @@ -131,3 +133,15 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', opts,
}
t.end();
});

tape( 'the function returns `-0` if provided `-0`', opts, function test( t ) {
var v = asindf( -0.0 );
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
t.end();
});

tape( 'the function returns `+0` if provided `+0`', opts, function test( t ) {
var v = asindf( 0.0 );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
t.end();
});
14 changes: 14 additions & 0 deletions lib/node_modules/@stdlib/math/base/special/asinf/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ var EPS = require( '@stdlib/constants/float32/eps' );
var uniform = require( '@stdlib/random/base/uniform' );
var abs = require( '@stdlib/math/base/special/abs' );
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
var isNegativeZero = require( '@stdlib/assert/is-negative-zero' );
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
var asinf = require( './../lib' );


Expand Down Expand Up @@ -149,3 +151,15 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', functi
}
t.end();
});

tape( 'the function returns `-0` if provided `-0`', function test( t ) {
var v = asinf( -0.0 );
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
t.end();
});

tape( 'the function returns `+0` if provided `+0`', function test( t ) {
var v = asinf( 0.0 );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ var EPS = require( '@stdlib/constants/float32/eps' );
var uniform = require( '@stdlib/random/base/uniform' );
var abs = require( '@stdlib/math/base/special/abs' );
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
var isNegativeZero = require( '@stdlib/assert/is-negative-zero' );
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
var tryRequire = require( '@stdlib/utils/try-require' );


Expand Down Expand Up @@ -158,3 +160,15 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', opts,
}
t.end();
});

tape( 'the function returns `-0` if provided `-0`', opts, function test( t ) {
var v = asinf( -0.0 );
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
t.end();
});

tape( 'the function returns `+0` if provided `+0`', opts, function test( t ) {
var v = asinf( 0.0 );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
t.end();
});