Skip to content

Commit 14b33f9

Browse files
committed
Auto-generated commit
1 parent 0cb305e commit 14b33f9

3 files changed

Lines changed: 29 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9703,6 +9703,7 @@ A total of 29 people contributed to this release. Thank you to the following con
97039703

97049704
<details>
97059705

9706+
- [`1446cc7`](https://github.com/stdlib-js/stdlib/commit/1446cc7f7868cb001f89e41ee6a2961a72b904f4) - **test:** add tests for IEEE 754-2019 compliance [(#6594)](https://github.com/stdlib-js/stdlib/pull/6594) _(by Karan Anand, stdlib-bot)_
97069707
- [`b76169a`](https://github.com/stdlib-js/stdlib/commit/b76169aa779df0938d243db1f92dbd6b81f458ac) - **test:** add tests for IEEE 754-2019 compliance [(#6593)](https://github.com/stdlib-js/stdlib/pull/6593) _(by Karan Anand, stdlib-bot)_
97079708
- [`3eeefe6`](https://github.com/stdlib-js/stdlib/commit/3eeefe6514916836d5fd798809bdf8a230d61e4b) - **fix:** update `sind` to follow the IEEE 754-2019 standard [(#6592)](https://github.com/stdlib-js/stdlib/pull/6592) _(by Karan Anand)_
97089709
- [`ba0637b`](https://github.com/stdlib-js/stdlib/commit/ba0637b9a4bae1689e15af9afb262de249764881) - **test:** add tests for IEEE 754-2019 compliance [(#6597)](https://github.com/stdlib-js/stdlib/pull/6597) _(by Karan Anand)_

base/special/tand/test/test.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ var abs = require( './../../../../base/special/abs' );
2626
var EPS = require( '@stdlib/constants/float64/eps' );
2727
var PINF = require( '@stdlib/constants/float64/pinf' );
2828
var NINF = require( '@stdlib/constants/float64/ninf' );
29+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
30+
var isNegativeZero = require( '@stdlib/assert/is-negative-zero' );
2931
var tand = require( './../lib' );
3032

3133

@@ -120,3 +122,15 @@ tape( 'if provided `-90.0`, the function returns `-Infinity`', function test( t
120122
t.strictEqual( v, NINF, 'returns expected value' );
121123
t.end();
122124
});
125+
126+
tape( 'the function returns `-0` if provided `-0`', function test( t ) {
127+
var v = tand( -0.0 );
128+
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
129+
t.end();
130+
});
131+
132+
tape( 'the function returns `+0` if provided `+0`', function test( t ) {
133+
var v = tand( 0.0 );
134+
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
135+
t.end();
136+
});

base/special/tand/test/test.native.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ var abs = require( './../../../../base/special/abs' );
2727
var EPS = require( '@stdlib/constants/float64/eps' );
2828
var PINF = require( '@stdlib/constants/float64/pinf' );
2929
var NINF = require( '@stdlib/constants/float64/ninf' );
30+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
31+
var isNegativeZero = require( '@stdlib/assert/is-negative-zero' );
3032
var tryRequire = require( '@stdlib/utils/try-require' );
3133

3234

@@ -129,3 +131,15 @@ tape( 'if provided `-90.0`, the function returns `-Infinity`', opts, function te
129131
t.strictEqual( v, NINF, 'returns expected value' );
130132
t.end();
131133
});
134+
135+
tape( 'the function returns `-0` if provided `-0`', opts, function test( t ) {
136+
var v = tand( -0.0 );
137+
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
138+
t.end();
139+
});
140+
141+
tape( 'the function returns `+0` if provided `+0`', opts, function test( t ) {
142+
var v = tand( 0.0 );
143+
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
144+
t.end();
145+
});

0 commit comments

Comments
 (0)