Skip to content

Commit 3340f14

Browse files
committed
Auto-generated commit
1 parent 83d6d82 commit 3340f14

File tree

5 files changed

+47
-43
lines changed

5 files changed

+47
-43
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-08-11)
7+
## Unreleased (2025-08-15)
88

99
<section class="reverts">
1010

@@ -22,6 +22,8 @@
2222

2323
<details>
2424

25+
- [`6f85067`](https://github.com/stdlib-js/stdlib/commit/6f8506775cdf2b3edf740216340ff7a0a82677dc) - **test:** fix malformed test descriptions from strictEqual migration _(by Philipp Burckhardt)_
26+
- [`65ddf8d`](https://github.com/stdlib-js/stdlib/commit/65ddf8d4d51ccfda52d1c5a06408e43fb386c27e) - **test:** use .strictEqual() instead of .equal() and fix lint errors _(by Philipp Burckhardt)_
2527
- [`2f78853`](https://github.com/stdlib-js/stdlib/commit/2f788539be521ba8e7e1c76a37e9fddc57530596) - **docs:** update related packages sections [(#6617)](https://github.com/stdlib-js/stdlib/pull/6617) _(by stdlib-bot)_
2628
- [`630ddb7`](https://github.com/stdlib-js/stdlib/commit/630ddb777824b5f6e501fda6dadf4ce41dccb964) - **test:** replace equal with strictEqual _(by Karan Anand)_
2729
- [`e196811`](https://github.com/stdlib-js/stdlib/commit/e196811330529364e4bf889dc9df2f74f3bf5cb9) - **bench:** update random value generation [(#5987)](https://github.com/stdlib-js/stdlib/pull/5987) _(by Karan Anand)_

CONTRIBUTORS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Abhishek G <[email protected]>
1313
Abhishek Jain <[email protected]>
1414
Adarsh Palaskar <[email protected]>
1515
Aditya Sapra <[email protected]>
16+
Aditya Singh <[email protected]>
1617
Ahmed Atwa <[email protected]>
1718
Ahmed Kashkoush <[email protected]>
1819
Ahmed Khaled <[email protected]>
@@ -121,6 +122,7 @@ Muhammad Haris <[email protected]>
121122
Muhammad Taaha Tariq <[email protected]>
122123
Muhmmad Saad <[email protected]>
123124
NEEKUorAAYUSH <[email protected]>
125+
Nakul Krishnakumar <[email protected]>
124126
Naresh Jagadeesan <[email protected]>
125127
Naveen Kumar <[email protected]>
126128
Neeraj Pathak <[email protected]>
@@ -164,6 +166,7 @@ Ruthwik Chikoti <[email protected]>
164166
Ryan Seal <[email protected]>
165167
Rylan Yang <[email protected]>
166168
SAHIL KUMAR <[email protected]>
169+
SAUJANYA MAGARDE <[email protected]>
167170
SHIVAM YADAV <[email protected]>
168171
Sachin Raj <[email protected]>
169172
Sahil Goyal <[email protected]>

test/test.assign.js

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ tape( 'if provided negative infinity, the function returns `[NaN,NaN]`', functio
5151

5252
out = [ 0.0, 0.0 ];
5353
y = sincospi( NINF, out, 1, 0 );
54-
t.equal( y, out, 'returns output array' );
55-
t.equal( isnan( y[ 0 ] ), true, 'returns expected value' );
56-
t.equal( isnan( y[ 1 ] ), true, 'returns expected value' );
54+
t.strictEqual( y, out, 'returns output array' );
55+
t.strictEqual( isnan( y[ 0 ] ), true, 'returns expected value' );
56+
t.strictEqual( isnan( y[ 1 ] ), true, 'returns expected value' );
5757
t.end();
5858
});
5959

@@ -63,9 +63,9 @@ tape( 'if provided positive infinity, the function returns `[NaN,NaN]`', functio
6363

6464
out = [ 0.0, 0.0 ];
6565
y = sincospi( PINF, out, 1, 0 );
66-
t.equal( y, out, 'returns output array' );
67-
t.equal( isnan( y[ 0 ] ), true, 'returns expected value' );
68-
t.equal( isnan( y[ 1 ] ), true, 'returns expected value' );
66+
t.strictEqual( y, out, 'returns output array' );
67+
t.strictEqual( isnan( y[ 0 ] ), true, 'returns expected value' );
68+
t.strictEqual( isnan( y[ 1 ] ), true, 'returns expected value' );
6969
t.end();
7070
});
7171

@@ -75,9 +75,9 @@ tape( 'if provided `NaN`, the function returns `[NaN,NaN]`', function test( t )
7575

7676
out = [ 0.0, 0.0 ];
7777
y = sincospi( NaN, out, 1, 0 );
78-
t.equal( y, out, 'returns output array' );
79-
t.equal( isnan( y[ 0 ] ), true, 'returns expected value' );
80-
t.equal( isnan( y[ 1 ] ), true, 'returns expected value' );
78+
t.strictEqual( y, out, 'returns output array' );
79+
t.strictEqual( isnan( y[ 0 ] ), true, 'returns expected value' );
80+
t.strictEqual( isnan( y[ 1 ] ), true, 'returns expected value' );
8181
t.end();
8282
});
8383

@@ -95,9 +95,9 @@ tape( 'the function computes sin(πx) and cos(πx) for integer input', function
9595
for ( i = 0; i < x.length; i++ ) {
9696
out = [ 0.0, 0.0 ];
9797
y = sincospi( x[ i ], out, 1, 0 );
98-
t.equal( y, out, 'returns output array' );
99-
t.equal( y[ 0 ], s[ i ], 'returns '+s[ i ] );
100-
t.equal( y[ 1 ], c[ i ], 'returns '+c[ i ] );
98+
t.strictEqual( y, out, 'returns output array' );
99+
t.strictEqual( y[ 0 ], s[ i ], 'returns '+s[ i ] );
100+
t.strictEqual( y[ 1 ], c[ i ], 'returns '+c[ i ] );
101101
}
102102
t.end();
103103
});
@@ -112,9 +112,9 @@ tape( 'if provided a value exceeding `2**53` (max (unsafe) float64 integer), the
112112
for ( i = 0; i < 100; i++ ) {
113113
out = [ 0.0, 0.0 ];
114114
y = sincospi( x + i, out, 1, 0 );
115-
t.equal( y, out, 'returns output array' );
116-
t.equal( y[ 0 ], 0.0, 'returns expected value' );
117-
t.equal( y[ 1 ], 1.0, 'returns expected value' );
115+
t.strictEqual( y, out, 'returns output array' );
116+
t.strictEqual( y[ 0 ], 0.0, 'returns expected value' );
117+
t.strictEqual( y[ 1 ], 1.0, 'returns expected value' );
118118
}
119119
t.end();
120120
});
@@ -129,9 +129,9 @@ tape( 'the function computes the sin(πx) and cos(πx) for fractional part equal
129129
x = 0.5 + ( 1.0 * i );
130130
out = [ 0.0, 0.0 ];
131131
y = sincospi( x, out, 1, 0 );
132-
t.equal( y, out, 'returns output array' );
133-
t.equal( y[ 0 ], ( (i%2 === 0) ? 1.0 : -1.0 ), 'x: '+x+'. Expected: 0' );
134-
t.equal( y[ 1 ], 0.0, 'x: '+x+'. Expected: 0' );
132+
t.strictEqual( y, out, 'returns output array' );
133+
t.strictEqual( y[ 0 ], ( (i%2 === 0) ? 1.0 : -1.0 ), 'x: '+x+'. Expected: 0' );
134+
t.strictEqual( y[ 1 ], 0.0, 'x: '+x+'. Expected: 0' );
135135
}
136136
t.end();
137137
});
@@ -151,16 +151,16 @@ tape( 'the function computes the sin(πx) and cos(πx) for decimal input', funct
151151
for ( i = 0; i < x.length; i++ ) {
152152
out = [ 0.0, 0.0 ];
153153
y = sincospi( x[ i ], out, 1, 0 );
154-
t.equal( y, out, 'returns output array' );
154+
t.strictEqual( y, out, 'returns output array' );
155155

156156
if ( y[ 0 ] === s[ i ] ) {
157-
t.equal( y[ 0 ], s[ i ], 'x: '+x[ i ]+'. Expected: '+s[ i ] );
157+
t.strictEqual( y[ 0 ], s[ i ], 'x: '+x[ i ]+'. Expected: '+s[ i ] );
158158
} else {
159159
delta = abs( y[ 0 ] - s[ i ] );
160160
t.ok( delta <= EPS, 'within tolerance. x: '+x[ i ]+'. Value: '+y[ 0 ]+'. Expected: '+s[ i ]+'. Tolerance: '+EPS+'.' );
161161
}
162162
if ( y[ 1 ] === c[ i ] ) {
163-
t.equal( y[ 1 ], c[ i ], 'x: '+x[ i ]+'. Expected: '+c[ i ] );
163+
t.strictEqual( y[ 1 ], c[ i ], 'x: '+x[ i ]+'. Expected: '+c[ i ] );
164164
} else {
165165
delta = abs( y[ 1 ] - c[ i ] );
166166
t.ok( delta <= EPS, 'within tolerance. x: '+x[ i ]+'. Value: '+y[ 1 ]+'. Expected: '+c[ i ]+'. Tolerance: '+EPS+'.' );
@@ -177,8 +177,8 @@ tape( 'the function supports providing an output typed array', function test( t
177177
parts = sincospi( NaN, out, 1, 0 );
178178

179179
t.strictEqual( parts, out, 'returns output array' );
180-
t.equal( isnan( parts[ 0 ] ), true, 'returns expected value' );
181-
t.equal( isnan( parts[ 1 ] ), true, 'returns expected value' );
180+
t.strictEqual( isnan( parts[ 0 ] ), true, 'returns expected value' );
181+
t.strictEqual( isnan( parts[ 1 ] ), true, 'returns expected value' );
182182
t.end();
183183
});
184184

@@ -190,9 +190,9 @@ tape( 'the function supports specifying a stride', function test( t ) {
190190
val = sincospi( NaN, out, 2, 0 );
191191

192192
t.strictEqual( val, out, 'returns output array' );
193-
t.equal( isnan(val[ 0 ]), true, 'returns expected value' );
193+
t.strictEqual( isnan(val[ 0 ]), true, 'returns expected value' );
194194
t.strictEqual( val[ 1 ], 0, 'returns expected value' );
195-
t.equal( isnan( val[ 2 ]), true, 'returns expected value' );
195+
t.strictEqual( isnan( val[ 2 ]), true, 'returns expected value' );
196196
t.strictEqual( val[ 3 ], 0, 'returns expected value' );
197197

198198
t.end();
@@ -207,9 +207,9 @@ tape( 'the function supports specifying an offset', function test( t ) {
207207

208208
t.strictEqual( val, out, 'returns output array' );
209209
t.strictEqual( val[ 0 ], 0, 'returns expected value' );
210-
t.equal( isnan(val[ 1 ]), true, 'returns expected value' );
210+
t.strictEqual( isnan(val[ 1 ]), true, 'returns expected value' );
211211
t.strictEqual( val[ 2 ], 0, 'returns expected value' );
212-
t.equal( isnan( val[ 3 ]), true, 'returns expected value' );
212+
t.strictEqual( isnan( val[ 3 ]), true, 'returns expected value' );
213213

214214
t.end();
215215
});

test/test.main.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,22 @@ tape( 'main export is a function', function test( t ) {
4646

4747
tape( 'if provided negative infinity, the function returns `[NaN,NaN]`', function test( t ) {
4848
var y = sincospi( NINF );
49-
t.equal( isnan( y[ 0 ] ), true, 'returns expected value' );
50-
t.equal( isnan( y[ 1 ] ), true, 'returns expected value' );
49+
t.strictEqual( isnan( y[ 0 ] ), true, 'returns expected value' );
50+
t.strictEqual( isnan( y[ 1 ] ), true, 'returns expected value' );
5151
t.end();
5252
});
5353

5454
tape( 'if provided positive infinity, the function returns `[NaN,NaN]`', function test( t ) {
5555
var y = sincospi( PINF );
56-
t.equal( isnan( y[ 0 ] ), true, 'returns expected value' );
57-
t.equal( isnan( y[ 1 ] ), true, 'returns expected value' );
56+
t.strictEqual( isnan( y[ 0 ] ), true, 'returns expected value' );
57+
t.strictEqual( isnan( y[ 1 ] ), true, 'returns expected value' );
5858
t.end();
5959
});
6060

6161
tape( 'if provided `NaN`, the function returns `[NaN,NaN]`', function test( t ) {
6262
var y = sincospi( NaN );
63-
t.equal( isnan( y[ 0 ] ), true, 'returns expected value' );
64-
t.equal( isnan( y[ 1 ] ), true, 'returns expected value' );
63+
t.strictEqual( isnan( y[ 0 ] ), true, 'returns expected value' );
64+
t.strictEqual( isnan( y[ 1 ] ), true, 'returns expected value' );
6565
t.end();
6666
});
6767

@@ -77,8 +77,8 @@ tape( 'the function computes sin(πx) and cos(πx) for integer input', function
7777
c = integers.cos;
7878
for ( i = 0; i < x.length; i++ ) {
7979
y = sincospi( x[ i ] );
80-
t.equal( y[ 0 ], s[ i ], 'returns '+s[ i ] );
81-
t.equal( y[ 1 ], c[ i ], 'returns '+c[ i ] );
80+
t.strictEqual( y[ 0 ], s[ i ], 'returns '+s[ i ] );
81+
t.strictEqual( y[ 1 ], c[ i ], 'returns '+c[ i ] );
8282
}
8383
t.end();
8484
});
@@ -91,8 +91,8 @@ tape( 'if provided a value exceeding `2**53` (max (unsafe) float64 integer), the
9191
x = pow( 2.0, 53 ) + 1.0;
9292
for ( i = 0; i < 100; i++ ) {
9393
y = sincospi( x+i );
94-
t.equal( y[ 0 ], 0.0, 'returns expected value' );
95-
t.equal( y[ 1 ], 1.0, 'returns expected value' );
94+
t.strictEqual( y[ 0 ], 0.0, 'returns expected value' );
95+
t.strictEqual( y[ 1 ], 1.0, 'returns expected value' );
9696
}
9797
t.end();
9898
});
@@ -105,8 +105,8 @@ tape( 'the function computes the sin(πx) and cos(πx) for fractional part equal
105105
for ( i = -100; i <= 100; i++ ) {
106106
x = 0.5 + ( 1.0 * i );
107107
y = sincospi( x );
108-
t.equal( y[ 0 ], ( (i%2 === 0) ? 1.0 : -1.0 ), 'x: '+x+'. Expected: 0' );
109-
t.equal( y[ 1 ], 0.0, 'x: '+x+'. Expected: 0' );
108+
t.strictEqual( y[ 0 ], ( (i%2 === 0) ? 1.0 : -1.0 ), 'x: '+x+'. Expected: 0' );
109+
t.strictEqual( y[ 1 ], 0.0, 'x: '+x+'. Expected: 0' );
110110
}
111111
t.end();
112112
});
@@ -126,13 +126,13 @@ tape( 'the function computes the sin(πx) and cos(πx) for decimal input', funct
126126
y = sincospi( x[ i ] );
127127

128128
if ( y[ 0 ] === s[ i ] ) {
129-
t.equal( y[ 0 ], s[ i ], 'x: '+x[ i ]+'. Expected: '+s[ i ] );
129+
t.strictEqual( y[ 0 ], s[ i ], 'x: '+x[ i ]+'. Expected: '+s[ i ] );
130130
} else {
131131
delta = abs( y[ 0 ] - s[ i ] );
132132
t.ok( delta <= EPS, 'within tolerance. x: '+x[ i ]+'. Value: '+y[ 0 ]+'. Expected: '+s[ i ]+'. Tolerance: '+EPS+'.' );
133133
}
134134
if ( y[ 1 ] === c[ i ] ) {
135-
t.equal( y[ 1 ], c[ i ], 'x: '+x[ i ]+'. Expected: '+c[ i ] );
135+
t.strictEqual( y[ 1 ], c[ i ], 'x: '+x[ i ]+'. Expected: '+c[ i ] );
136136
} else {
137137
delta = abs( y[ 1 ] - c[ i ] );
138138
t.ok( delta <= EPS, 'within tolerance. x: '+x[ i ]+'. Value: '+y[ 1 ]+'. Expected: '+c[ i ]+'. Tolerance: '+EPS+'.' );

0 commit comments

Comments
 (0)