Skip to content

Commit 61a81a0

Browse files
authored
Merge branch 'develop' into migrate-math-base-ops-addf
Signed-off-by: Athan <kgryte@gmail.com>
2 parents ec08225 + 16fe13d commit 61a81a0

File tree

361 files changed

+6912
-974
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

361 files changed

+6912
-974
lines changed

.github/workflows/scripts/create_address_commit_comments_issues

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ issue_exists_for_commit() {
194194
local query
195195

196196
# Build a search query that looks for the commit short SHA in the issue title:
197-
local raw_query="repo:${owner}/${repo} in:title \"commit ${short_sha}\""
197+
local raw_query="repo:${owner}/${repo} in:title \"commit \`${short_sha}\`\""
198198

199199
# URL-encode the query using jq:
200200
query=$(echo "$raw_query" | jq -sRr @uri)
@@ -211,8 +211,7 @@ issue_exists_for_commit() {
211211
local total_count
212212
total_count=$(echo "$response" | jq -r '.total_count')
213213

214-
if [ "$total_count" -gt 0 ]; then
215-
# An issue already exists:
214+
if [ "$total_count" = "null" ] || [ "$total_count" -gt 0 ]; then
216215
return 0
217216
else
218217
return 1

.mailmap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ Stephannie Jiménez Gacha <steff456@hotmail.com> <steff456@users.noreply.github.
201201
Stephannie Jiménez Gacha <steff456@hotmail.com> Stephannie Jimenez
202202
Stephannie Jiménez Gacha <steff456@hotmail.com> Stephannie Jimenez Gacha
203203

204+
Suhaib Ilahi <suhaib.elahi87@gmail.com> Suhaib
205+
204206
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com> Suraj kuma
205207

206208
# T
@@ -236,3 +238,5 @@ Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com> yaswanth
236238

237239
Yernar Yergaziyev <yernar.yergaziyev@erg.kz> <yernar707@users.noreply.github.com>
238240
Yernar Yergaziyev <yernar.yergaziyev@erg.kz> <54137699+yernar707@users.noreply.github.com>
241+
242+
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com> yuvi-mittal

CONTRIBUTORS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
104104
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
105105
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
106106
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
107+
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
107108
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
108109
Shivam Ahir <11shivam00@gmail.com>
109110
Shraddheya Shendre <shendreshraddheya@gmail.com>
@@ -114,6 +115,7 @@ Snehil Shah <snehilshah.989@gmail.com>
114115
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
115116
Spandan Barve <contact@marsian.dev>
116117
Stephannie Jiménez Gacha <steff456@hotmail.com>
118+
Suhaib Ilahi <suhaib.elahi87@gmail.com>
117119
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
118120
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
119121
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
@@ -128,6 +130,7 @@ Vivek Maurya <vm8118134@gmail.com>
128130
Xiaochuan Ye <tap91624@gmail.com>
129131
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
130132
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
133+
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
131134
ekambains <bainsinbusiness@gmail.com>
132135
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
133136
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>

lib/node_modules/@stdlib/blas/base/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ var o = blas;
8787
- <span class="signature">[`zaxpy( N, za, zx, strideX, zy, strideY )`][@stdlib/blas/base/zaxpy]</span><span class="delimiter">: </span><span class="description">scale a double-precision complex floating-point vector by a double-precision complex floating-point constant and add the result to a double-precision complex floating-point vector.</span>
8888
- <span class="signature">[`zcopy( N, x, strideX, y, strideY )`][@stdlib/blas/base/zcopy]</span><span class="delimiter">: </span><span class="description">copy values from one complex double-precision floating-point vector to another complex double-precision floating-point vector.</span>
8989
- <span class="signature">[`zdrot( N, zx, strideX, zy, strideY, c, s )`][@stdlib/blas/base/zdrot]</span><span class="delimiter">: </span><span class="description">applies a plane rotation.</span>
90-
- <span class="signature">[`zscal( N, za, zx, strideX )`][@stdlib/blas/base/zscal]</span><span class="delimiter">: </span><span class="description">scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.</span>
90+
- <span class="signature">[`zscal( N, alpha, x, strideX )`][@stdlib/blas/base/zscal]</span><span class="delimiter">: </span><span class="description">scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.</span>
9191
- <span class="signature">[`zswap( N, x, strideX, y, strideY )`][@stdlib/blas/base/zswap]</span><span class="delimiter">: </span><span class="description">interchange two complex double-precision floating-point vectors.</span>
9292

9393
</div>

lib/node_modules/@stdlib/blas/base/docs/types/index.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2126,30 +2126,30 @@ interface Namespace {
21262126
* Scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.
21272127
*
21282128
* @param N - number of indexed elements
2129-
* @param za - scalar constant
2130-
* @param zx - input array
2131-
* @param strideX - `zx` stride length
2129+
* @param alpha - scalar constant
2130+
* @param x - input array
2131+
* @param strideX - `x` stride length
21322132
* @returns input array
21332133
*
21342134
* @example
21352135
* var Complex128Array = require( '@stdlib/array/complex128' );
21362136
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
21372137
*
2138-
* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
2139-
* var za = new Complex128( 2.0, 2.0 );
2138+
* var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
2139+
* var alpha = new Complex128( 2.0, 2.0 );
21402140
*
2141-
* ns.zscal( 3, za, zx, 1 );
2142-
* // zx => <Complex128Array>[ -2.0, 6.0, -2.0, 14.0, -2.0, 22.0 ]
2141+
* ns.zscal( 3, alpha, x, 1 );
2142+
* // x => <Complex128Array>[ -2.0, 6.0, -2.0, 14.0, -2.0, 22.0 ]
21432143
*
21442144
* @example
21452145
* var Complex128Array = require( '@stdlib/array/complex128' );
21462146
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
21472147
*
2148-
* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
2149-
* var za = new Complex128( 2.0, 2.0 );
2148+
* var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
2149+
* var alpha = new Complex128( 2.0, 2.0 );
21502150
*
2151-
* ns.zscal.ndarray( 2, za, zx, 1, 1 );
2152-
* // zx => <Complex128Array>[ -2.0, 6.0, -2.0, 14.0, -2.0, 22.0 ]
2151+
* ns.zscal.ndarray( 2, alpha, x, 1, 1 );
2152+
* // x => <Complex128Array>[ -2.0, 6.0, -2.0, 14.0, -2.0, 22.0 ]
21532153
*/
21542154
zscal: typeof zscal;
21552155

lib/node_modules/@stdlib/blas/ext/base/gapx/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ console.log( x );
145145
## See Also
146146

147147
- <span class="package-name">[`@stdlib/blas/ext/base/dapx`][@stdlib/blas/ext/base/dapx]</span><span class="delimiter">: </span><span class="description">add a scalar constant to each element in a double-precision floating-point strided array.</span>
148-
- <span class="package-name">[`@stdlib/blas/ext/base/sapx`][@stdlib/blas/ext/base/sapx]</span><span class="delimiter">: </span><span class="description">add a constant to each element in a single-precision floating-point strided array.</span>
148+
- <span class="package-name">[`@stdlib/blas/ext/base/sapx`][@stdlib/blas/ext/base/sapx]</span><span class="delimiter">: </span><span class="description">add a scalar constant to each element in a single-precision floating-point strided array.</span>
149149

150150
</section>
151151

lib/node_modules/@stdlib/blas/ext/base/ssort2ins/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,14 +231,14 @@ stdlib_strided_ssort2ins( 4, 1.0f, x, 1, y, 1 );
231231
The function accepts the following arguments:
232232
233233
- **N**: `[in] CBLAS_INT` number of indexed elements.
234-
- **order**: `[in] float` sort order. If `order < 0.0`, the input strided array `x` is sorted in **decreasing** order. If `order > 0.0`, the input strided array `x` is sorted in **increasing** order. If `order == 0.0`, the input strided arrays are left unchanged.
234+
- **order**: `[in] float` sort order. If `order < 0.0`, the input strided array `X` is sorted in **decreasing** order. If `order > 0.0`, the input strided array `X` is sorted in **increasing** order. If `order == 0.0`, the input strided arrays are left unchanged.
235235
- **X**: `[inout] float*` first input array.
236236
- **strideX**: `[in] CBLAS_INT` stride length for `X`.
237237
- **Y**: `[inout] float*` second input array.
238238
- **strideY**: `[in] CBLAS_INT` stride length for `Y`.
239239
240240
```c
241-
stdlib_strided_ssort2ins( const CBLAS_INT N, const float order, float *X, CBLAS_INT strideX, float *Y, CBLAS_INT strideY );
241+
stdlib_strided_ssort2ins( const CBLAS_INT N, const float order, float *X, const CBLAS_INT strideX, float *Y, const CBLAS_INT strideY );
242242
```
243243

244244
<!--lint disable maximum-heading-length-->
@@ -259,7 +259,7 @@ stdlib_strided_ssort2ins_ndarray( 4, 1.0f, x, 1, 0, y, 1, 0 );
259259
The function accepts the following arguments:
260260
261261
- **N**: `[in] CBLAS_INT` number of indexed elements.
262-
- **order**: `[in] float` sort order. If `order < 0.0`, the input strided array `x` is sorted in **decreasing** order. If `order > 0.0`, the input strided array `x` is sorted in **increasing** order. If `order == 0.0`, the input strided arrays are left unchanged.
262+
- **order**: `[in] float` sort order. If `order < 0.0`, the input strided array `X` is sorted in **decreasing** order. If `order > 0.0`, the input strided array `X` is sorted in **increasing** order. If `order == 0.0`, the input strided arrays are left unchanged.
263263
- **X**: `[inout] float*` first input array.
264264
- **strideX**: `[in] CBLAS_INT` stride length for `X`.
265265
- **offsetX**: `[in] CBLAS_INT` starting index for `X`.
@@ -268,7 +268,7 @@ The function accepts the following arguments:
268268
- **offsetY**: `[in] CBLAS_INT` starting index for `Y`.
269269
270270
```c
271-
stdlib_strided_ssort2ins_ndarray( const CBLAS_INT N, const float order, float *X, CBLAS_INT strideX, CBLAS_INT offsetX, float *Y, CBLAS_INT strideY, CBLAS_INT offsetY );
271+
stdlib_strided_ssort2ins_ndarray( const CBLAS_INT N, const float order, float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, float *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY );
272272
```
273273

274274
</section>

lib/node_modules/@stdlib/blas/ext/base/ssort2ins/benchmark/c/benchmark.unsorted_random.length.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static double tic( void ) {
8282
*
8383
* @return random number
8484
*/
85-
static double rand_float( void ) {
85+
static float rand_float( void ) {
8686
int r = rand();
8787
return (float)r / ( (float)RAND_MAX + 1.0f );
8888
}

lib/node_modules/@stdlib/blas/ext/base/ssort2ins/src/main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void API_SUFFIX(stdlib_strided_ssort2ins)( const CBLAS_INT N, const float order,
4141

4242

4343
/**
44-
* Simultaneously sorts two signle-precision floating-point strided arrays based on the sort order of the first array using insertion sort and alternative indexing semantics.
44+
* Simultaneously sorts two single-precision floating-point strided arrays based on the sort order of the first array using insertion sort and alternative indexing semantics.
4545
*
4646
* @param N number of indexed elements
4747
* @param order sort order
@@ -52,7 +52,7 @@ void API_SUFFIX(stdlib_strided_ssort2ins)( const CBLAS_INT N, const float order,
5252
* @param strideY stride length for `Y`
5353
* @param offsetY starting index for `Y`
5454
*/
55-
void API_SUFFIX(stdlib_strided_ssort2ins_ndarray)( const CBLAS_INT N, const float order, float *X, CBLAS_INT strideX, CBLAS_INT offsetX, float *Y, CBLAS_INT strideY, CBLAS_INT offsetY ) {
55+
void API_SUFFIX(stdlib_strided_ssort2ins_ndarray)( const CBLAS_INT N, const float order, float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, float *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY ) {
5656
CBLAS_INT sx;
5757
CBLAS_INT sy;
5858
CBLAS_INT ox;
@@ -76,8 +76,8 @@ void API_SUFFIX(stdlib_strided_ssort2ins_ndarray)( const CBLAS_INT N, const floa
7676
}
7777
// For a positive stride, sorting in decreasing order is equivalent to providing a negative stride and sorting in increasing order, and, for a negative stride, sorting in decreasing order is equivalent to providing a positive stride and sorting in increasing order...
7878
if ( order < 0.0f ) {
79-
sx = strideX * -1;
80-
sy = strideY * -1;
79+
sx = -strideX;
80+
sy = -strideY;
8181
ox = offsetX - ( (N-1) * sx );
8282
oy = offsetY - ( (N-1) * sy );
8383
} else {

lib/node_modules/@stdlib/complex/float32/base/docs/types/index.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,25 @@ interface Namespace {
8585
*
8686
* var im = imagf( out );
8787
* // returns -1.0
88+
*
89+
* @example
90+
* var Float32Array = require( '@stdlib/array/float32' );
91+
*
92+
* var out = new Float32Array( 2 );
93+
* var v = ns.mul.assign( 5.0, 3.0, -2.0, 1.0, out, 1, 0 );
94+
* // returns <Float32Array>[ -13.0, -1.0 ]
95+
*
96+
* var bool = ( out === v );
97+
* // returns true
98+
*
99+
* @example
100+
* var Float32Array = require( '@stdlib/array/float32' );
101+
*
102+
* var z1 = new Float32Array( [ 5.0, 3.0 ] );
103+
* var z2 = new Float32Array( [ -2.0, 1.0 ] );
104+
*
105+
* var out = ns.mul.strided( z1, 1, 0, z2, 1, 0, new Float32Array( 2 ), 1, 0 );
106+
* // returns <Float32Array>[ -13.0, -1.0 ]
88107
*/
89108
mul: typeof mul;
90109
}

lib/node_modules/@stdlib/math/base/ops/docs/types/index.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,25 @@ interface Namespace {
9797
*
9898
* var im = imagf( out );
9999
* // returns -1.0
100+
*
101+
* @example
102+
* var Float32Array = require( '@stdlib/array/float32' );
103+
*
104+
* var out = new Float32Array( 2 );
105+
* var v = ns.cmulf.assign( 5.0, 3.0, -2.0, 1.0, out, 1, 0 );
106+
* // returns <Float32Array>[ -13.0, -1.0 ]
107+
*
108+
* var bool = ( out === v );
109+
* // returns true
110+
*
111+
* @example
112+
* var Float32Array = require( '@stdlib/array/float32' );
113+
*
114+
* var z1 = new Float32Array( [ 5.0, 3.0 ] );
115+
* var z2 = new Float32Array( [ -2.0, 1.0 ] );
116+
*
117+
* var out = ns.cmulf.strided( z1, 1, 0, z2, 1, 0, new Float32Array( 2 ), 1, 0 );
118+
* // returns <Float32Array>[ -13.0, -1.0 ]
100119
*/
101120
cmulf: typeof cmulf;
102121

lib/node_modules/@stdlib/math/base/special/abs2/benchmark/benchmark.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var bench = require( '@stdlib/bench' );
24-
var randu = require( '@stdlib/random/base/randu' );
24+
var randu = require( '@stdlib/random/array/uniform' );
2525
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2626
var pkg = require( './../package.json' ).name;
2727
var abs2 = require( './../lib' );
@@ -34,10 +34,11 @@ bench( pkg, function benchmark( b ) {
3434
var y;
3535
var i;
3636

37+
x = randu( 100, -500.0, 500.0 );
38+
3739
b.tic();
3840
for ( i = 0; i < b.iterations; i++ ) {
39-
x = ( randu()*1000.0 ) - 500.0;
40-
y = abs2( x );
41+
y = abs2( x[ i % x.length ] );
4142
if ( isnan( y ) ) {
4243
b.fail( 'should not return NaN' );
4344
}
@@ -55,10 +56,11 @@ bench( pkg+'::built-in', function benchmark( b ) {
5556
var y;
5657
var i;
5758

59+
x = randu( 100, -500.0, 500.0 );
60+
5861
b.tic();
5962
for ( i = 0; i < b.iterations; i++ ) {
60-
x = ( randu()*1000.0 ) - 500.0;
61-
y = x * x;
63+
y = x[ i % x.length ] * x[ i % x.length ];
6264
if ( isnan( y ) ) {
6365
b.fail( 'should not return NaN' );
6466
}

lib/node_modules/@stdlib/math/base/special/abs2/benchmark/benchmark.native.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench' );
25-
var randu = require( '@stdlib/random/base/randu' );
25+
var randu = require( '@stdlib/random/array/uniform' );
2626
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2727
var tryRequire = require( '@stdlib/utils/try-require' );
2828
var pkg = require( './../package.json' ).name;
@@ -43,10 +43,11 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4343
var y;
4444
var i;
4545

46+
x = randu( 100, -500.0, 500.0 );
47+
4648
b.tic();
4749
for ( i = 0; i < b.iterations; i++ ) {
48-
x = ( randu()*1000.0 ) - 500.0;
49-
y = abs2( x );
50+
y = abs2( x[ i % x.length ] );
5051
if ( isnan( y ) ) {
5152
b.fail( 'should not return NaN' );
5253
}

lib/node_modules/@stdlib/math/base/special/abs2/benchmark/c/benchmark.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,19 @@ double abs2( double x ) {
9999
* @return elapsed time in seconds
100100
*/
101101
static double benchmark( void ) {
102+
double x[ 100 ];
102103
double elapsed;
103-
double x;
104104
double y;
105105
double t;
106106
int i;
107107

108+
for ( i = 0; i < 100; i++ ) {
109+
x[ i ] = ( 1000.0 * rand_double() ) - 500.0;
110+
}
111+
108112
t = tic();
109113
for ( i = 0; i < ITERATIONS; i++ ) {
110-
x = ( 1000.0*rand_double() ) - 500.0;
111-
y = abs2( x );
114+
y = abs2( x[ i % 100 ] );
112115
if ( y != y ) {
113116
printf( "should not return NaN\n" );
114117
break;

lib/node_modules/@stdlib/math/base/special/abs2/benchmark/c/native/benchmark.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,19 @@ static double rand_double( void ) {
9090
* @return elapsed time in seconds
9191
*/
9292
static double benchmark( void ) {
93+
double x[ 100 ];
9394
double elapsed;
94-
double x;
9595
double y;
9696
double t;
9797
int i;
9898

99+
for ( i = 0; i < 100; i++ ) {
100+
x[ i ] = ( 1000.0 * rand_double() ) - 500.0;
101+
}
102+
99103
t = tic();
100104
for ( i = 0; i < ITERATIONS; i++ ) {
101-
x = ( 1000.0*rand_double() ) - 500.0;
102-
y = stdlib_base_abs2( x );
105+
y = stdlib_base_abs2( x[ i % 100 ] );
103106
if ( y != y ) {
104107
printf( "should not return NaN\n" );
105108
break;

lib/node_modules/@stdlib/math/base/special/abs2/test/test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,26 @@ tape( 'main export is a function', function test( t ) {
3838
});
3939

4040
tape( 'the function computes the squared absolute value of a number', function test( t ) {
41-
t.strictEqual( abs2( -2.0 ), 4.0, 'negative number' );
42-
t.strictEqual( abs2( 3.0 ), 9.0, 'positive number' );
43-
t.strictEqual( abs2( 0.0 ), 0.0, 'zero' );
44-
t.strictEqual( abs2( -PI ), PI*PI, 'pi' );
41+
t.strictEqual( abs2( -2.0 ), 4.0, 'returns expected value' );
42+
t.strictEqual( abs2( 3.0 ), 9.0, 'returns expected value' );
43+
t.strictEqual( abs2( 0.0 ), 0.0, 'returns expected value' );
44+
t.strictEqual( abs2( -PI ), PI*PI, 'returns expected value' );
4545
t.end();
4646
});
4747

4848
tape( 'the function computes the squared absolute value of negative zero', function test( t ) {
49-
t.strictEqual( isPositiveZero( abs2( -0.0 ) ), true, 'returns positive zero' );
49+
t.strictEqual( isPositiveZero( abs2( -0.0 ) ), true, 'returns expected value' );
5050
t.end();
5151
});
5252

5353
tape( 'the function computes the squared absolute value of infinity', function test( t ) {
54-
t.strictEqual( abs2( PINF ), PINF, 'returns +infinity' );
55-
t.strictEqual( abs2( NINF ), PINF, 'returns +infinity' );
54+
t.strictEqual( abs2( PINF ), PINF, 'returns expected value' );
55+
t.strictEqual( abs2( NINF ), PINF, 'returns expected value' );
5656
t.end();
5757
});
5858

5959
tape( 'if provided `NaN`, the function returns `NaN`', function test( t ) {
6060
var v = abs2( NaN );
61-
t.strictEqual( isnan( v ), true, 'returns NaN' );
61+
t.strictEqual( isnan( v ), true, 'returns expected value' );
6262
t.end();
6363
});

0 commit comments

Comments
 (0)