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
6 changes: 6 additions & 0 deletions lib/node_modules/@stdlib/math/base/special/acosd/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
var abs = require( '@stdlib/math/base/special/abs' );
var randu = require( '@stdlib/random/base/randu' );
var EPS = require( '@stdlib/constants/float64/eps' );
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
var acosd = require( './../lib' );


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

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


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

tape( 'the function returns `0` if provided `1`', opts, function test( t ) {
t.strictEqual( isPositiveZero( acosd( 1.0 ) ), true, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var absf = require( '@stdlib/math/base/special/absf' );
var randu = require( '@stdlib/random/base/randu' );
var EPS = require( '@stdlib/constants/float32/eps' );
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
var acosdf = require( './../lib' );


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

tape( 'the function returns `0` if provided `1`', function test( t ) {
t.strictEqual( isPositiveZero( acosdf( 1.0 ) ), true, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var absf = require( '@stdlib/math/base/special/absf' );
var randu = require( '@stdlib/random/base/randu' );
var EPS = require( '@stdlib/constants/float32/eps' );
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
var tryRequire = require( '@stdlib/utils/try-require' );


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

tape( 'the function returns `0` if provided `1`', opts, function test( t ) {
t.strictEqual( isPositiveZero( acosdf( 1.0 ) ), true, 'returns expected value' );
t.end();
});
6 changes: 6 additions & 0 deletions lib/node_modules/@stdlib/math/base/special/acosf/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ 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 PI = require( '@stdlib/constants/float32/pi' );
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
var acosf = require( './../lib' );


Expand Down Expand Up @@ -162,3 +163,8 @@ tape( 'the function returns `PI` if provided a value equal to `-1`', function te
t.strictEqual( v, PI, 'returns expected value' );
t.end();
});

tape( 'the function returns `0` if provided `1`', function test( t ) {
t.strictEqual( isPositiveZero( acosf( 1.0 ) ), true, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ 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 PI = require( '@stdlib/constants/float32/pi' );
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
var tryRequire = require( '@stdlib/utils/try-require' );


Expand Down Expand Up @@ -171,3 +172,8 @@ tape( 'the function returns `PI` if provided a value equal to `-1`', opts, funct
t.strictEqual( v, PI, 'returns expected value' );
t.end();
});

tape( 'the function returns `0` if provided `1`', opts, function test( t ) {
t.strictEqual( isPositiveZero( acosf( 1.0 ) ), true, 'returns expected value' );
t.end();
});