Skip to content

Commit 73b948f

Browse files
committed
Auto-generated commit
1 parent 7ca5cd3 commit 73b948f

11 files changed

Lines changed: 110 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9693,6 +9693,8 @@ A total of 29 people contributed to this release. Thank you to the following con
96939693

96949694
<details>
96959695

9696+
- [`9211c88`](https://github.com/stdlib-js/stdlib/commit/9211c88ad8ecd436a2fb5311eb00ace0ac8d6f9d) - **test:** add tests for IEEE 754-2019 compliance [(#6561)](https://github.com/stdlib-js/stdlib/pull/6561) _(by Karan Anand, stdlib-bot)_
9697+
- [`d9ad02c`](https://github.com/stdlib-js/stdlib/commit/d9ad02ca1c902ca787d9e9135160871379e40829) - **test:** add tests for IEEE 754-2019 compliance [(#6557)](https://github.com/stdlib-js/stdlib/pull/6557) _(by Karan Anand)_
96969698
- [`5c0b04d`](https://github.com/stdlib-js/stdlib/commit/5c0b04d1e4d0e03a7364541658bada5f20f8e50c) - **chore:** address commit comments for commit bb378ff (issue #6499) [(#6565)](https://github.com/stdlib-js/stdlib/pull/6565) _(by PrathamBhamare)_
96979699
- [`d0c1c2b`](https://github.com/stdlib-js/stdlib/commit/d0c1c2b9a307016b894d7fa3d500c98558bbe197) - **test:** add tests for IEEE 754-2019 compliance [(#6558)](https://github.com/stdlib-js/stdlib/pull/6558) _(by Karan Anand)_
96989700
- [`3e268db`](https://github.com/stdlib-js/stdlib/commit/3e268db3108b0f330cbadcad5c20b7fec6fea355) - **test:** add tests for IEEE 754-2019 compliance [(#6556)](https://github.com/stdlib-js/stdlib/pull/6556) _(by Karan Anand)_

base/special/acos/test/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var isnan = require( './../../../../base/assert/is-nan' );
2525
var randu = require( '@stdlib/random/base/randu' );
2626
var abs = require( './../../../../base/special/abs' );
2727
var EPS = require( '@stdlib/constants/float64/eps' );
28+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
2829
var acos = require( './../lib' );
2930

3031

@@ -140,3 +141,8 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', functi
140141
}
141142
t.end();
142143
});
144+
145+
tape( 'the function returns `0` if provided `1`', function test( t ) {
146+
t.equal( isPositiveZero( acos( 1.0 ) ), true, 'returns expected value' );
147+
t.end();
148+
});

base/special/acos/test/test.native.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var randu = require( '@stdlib/random/base/randu' );
2727
var tryRequire = require( '@stdlib/utils/try-require' );
2828
var abs = require( './../../../../base/special/abs' );
2929
var EPS = require( '@stdlib/constants/float64/eps' );
30+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
3031

3132

3233
// FIXTURES //
@@ -149,3 +150,8 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', opts,
149150
}
150151
t.end();
151152
});
153+
154+
tape( 'the function returns `0` if provided `1`', opts, function test( t ) {
155+
t.equal( isPositiveZero( acos( 1.0 ) ), true, 'returns expected value' );
156+
t.end();
157+
});

base/special/acosh/test/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var randu = require( '@stdlib/random/base/randu' );
2626
var EPS = require( '@stdlib/constants/float64/eps' );
2727
var PINF = require( '@stdlib/constants/float64/pinf' );
2828
var abs = require( './../../../../base/special/abs' );
29+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
2930
var acosh = require( './../lib' );
3031

3132

@@ -158,6 +159,11 @@ tape( 'the function returns `NaN` if provided value less than `1`', function tes
158159
t.end();
159160
});
160161

162+
tape( 'the function returns `0` if provided `1`', function test( t ) {
163+
t.equal( isPositiveZero( acosh( 1.0 ) ), true, 'returns expected value' );
164+
t.end();
165+
});
166+
161167
tape( 'the function returns `+infinity` if provided `+infinity`', function test( t ) {
162168
var v = acosh( PINF );
163169
t.equal( v, PINF, 'returns expected value' );

base/special/acosh/test/test.native.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var randu = require( '@stdlib/random/base/randu' );
2727
var PINF = require( '@stdlib/constants/float64/pinf' );
2828
var EPS = require( '@stdlib/constants/float64/eps' );
2929
var abs = require( './../../../../base/special/abs' );
30+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
3031
var tryRequire = require( '@stdlib/utils/try-require' );
3132

3233

@@ -167,6 +168,11 @@ tape( 'the function returns `NaN` if provided value less than `1`', opts, functi
167168
t.end();
168169
});
169170

171+
tape( 'the function returns `0` if provided `1`', opts, function test( t ) {
172+
t.equal( isPositiveZero( acosh( 1.0 ) ), true, 'returns expected value' );
173+
t.end();
174+
});
175+
170176
tape( 'the function returns `+infinity` if provided `+infinity`', opts, function test( t ) {
171177
var v = acosh( PINF );
172178
t.equal( v, PINF, 'returns expected value' );

base/special/asin/test/test.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ var isnan = require( './../../../../base/assert/is-nan' );
2525
var randu = require( '@stdlib/random/base/randu' );
2626
var EPS = require( '@stdlib/constants/float64/eps' );
2727
var abs = require( './../../../../base/special/abs' );
28+
var isNegativeZero = require( '@stdlib/assert/is-negative-zero' );
29+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
2830
var asin = require( './../lib' );
2931

3032

@@ -142,3 +144,15 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', functi
142144
}
143145
t.end();
144146
});
147+
148+
tape( 'the function returns `-0` if provided `-0`', function test( t ) {
149+
var v = asin( -0.0 );
150+
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
151+
t.end();
152+
});
153+
154+
tape( 'the function returns `+0` if provided `+0`', function test( t ) {
155+
var v = asin( 0.0 );
156+
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
157+
t.end();
158+
});

base/special/asin/test/test.native.js

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

3133

3234
// FIXTURES //
@@ -151,3 +153,15 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', opts,
151153
}
152154
t.end();
153155
});
156+
157+
tape( 'the function returns `-0` if provided `-0`', opts, function test( t ) {
158+
var v = asin( -0.0 );
159+
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
160+
t.end();
161+
});
162+
163+
tape( 'the function returns `+0` if provided `+0`', opts, function test( t ) {
164+
var v = asin( 0.0 );
165+
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
166+
t.end();
167+
});

base/special/sinpi/test/test.js

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

@@ -58,6 +60,18 @@ tape( 'if provided `NaN`, the function returns `NaN`', function test( t ) {
5860
t.end();
5961
});
6062

63+
tape( 'the function returns `-0` if provided `-0`', function test( t ) {
64+
var v = sinpi( -0.0 );
65+
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
66+
t.end();
67+
});
68+
69+
tape( 'the function returns `+0` if provided `+0`', function test( t ) {
70+
var v = sinpi( 0.0 );
71+
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
72+
t.end();
73+
});
74+
6175
tape( 'if provided an integer, the function returns `+-0`', function test( t ) {
6276
var expected;
6377
var x;

base/special/sinpi/test/test.native.js

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

@@ -67,6 +69,18 @@ tape( 'if provided `NaN`, the function returns `NaN`', opts, function test( t )
6769
t.end();
6870
});
6971

72+
tape( 'the function returns `-0` if provided `-0`', opts, function test( t ) {
73+
var v = sinpi( -0.0 );
74+
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
75+
t.end();
76+
});
77+
78+
tape( 'the function returns `+0` if provided `+0`', opts, function test( t ) {
79+
var v = sinpi( 0.0 );
80+
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
81+
t.end();
82+
});
83+
7084
tape( 'if provided an integer, the function returns `+-0`', opts, function test( t ) {
7185
var expected;
7286
var x;

base/special/tan/test/test.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ var PI = require( '@stdlib/constants/float64/pi' );
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 isNegativeZero = require( '@stdlib/assert/is-negative-zero' );
31+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
3032
var tan = require( './../lib' );
3133

3234

@@ -448,3 +450,15 @@ tape( 'if provided `-infinity`, the function returns `NaN`', function test( t )
448450
t.equal( isnan( v ), true, 'returns expected value' );
449451
t.end();
450452
});
453+
454+
tape( 'the function returns `-0` if provided `-0`', function test( t ) {
455+
var v = tan( -0.0 );
456+
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
457+
t.end();
458+
});
459+
460+
tape( 'the function returns `+0` if provided `+0`', function test( t ) {
461+
var v = tan( 0.0 );
462+
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
463+
t.end();
464+
});

0 commit comments

Comments
 (0)