Skip to content

Commit e3c0026

Browse files
committed
Auto-generated commit
1 parent f7b2e9f commit e3c0026

4 files changed

Lines changed: 43 additions & 36 deletions

File tree

CHANGELOG.md

Lines changed: 2 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-04-01)
7+
## Unreleased (2025-04-07)
88

99
<section class="reverts">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`630ddb7`](https://github.com/stdlib-js/stdlib/commit/630ddb777824b5f6e501fda6dadf4ce41dccb964) - **test:** replace equal with strictEqual _(by Karan Anand)_
2526
- [`a1e230f`](https://github.com/stdlib-js/stdlib/commit/a1e230f29297caa89880e9c194c615a0400fb7bc) - **chore:** clean up cppcheck-suppress comments _(by Karan Anand)_
2627
- [`2e1dd43`](https://github.com/stdlib-js/stdlib/commit/2e1dd438de6a412fcb94d486933a61709fd250ab) - **chore:** replace manual `for` loop in examples [(#6351)](https://github.com/stdlib-js/stdlib/pull/6351) _(by Harsh)_
2728
- [`e0d7522`](https://github.com/stdlib-js/stdlib/commit/e0d7522fc5f65cbb7e949eeed509a45b208008ec) - **bench:** update random value generation [(#6327)](https://github.com/stdlib-js/stdlib/pull/6327) _(by Harsh, Athan Reines)_

CONTRIBUTORS

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Dev Goel <135586571+corsairier@users.noreply.github.com>
4343
Dhanyabad behera <110620935+dhanyabad11@users.noreply.github.com>
4444
Dhruv Arvind Singh <154677013+DhruvArvindSingh@users.noreply.github.com>
4545
Dhruvil Mehta <68022411+dhruvilmehta@users.noreply.github.com>
46+
Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com>
4647
Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com>
4748
Dominic Lim <46486515+domlimm@users.noreply.github.com>
4849
Dominik Moritz <domoritz@gmail.com>
@@ -75,7 +76,7 @@ Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
7576
Joris Labie <joris.labie1@gmail.com>
7677
Justin Dennison <justin1dennison@gmail.com>
7778
Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
78-
Karan Anand <119553199+anandkaranubc@users.noreply.github.com>
79+
Karan Anand <anandkarancompsci@gmail.com>
7980
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
8081
Kaushikgtm <162317291+Kaushikgtm@users.noreply.github.com>
8182
Kavyansh-Bagdi <153486713+Kavyansh-Bagdi@users.noreply.github.com>
@@ -95,9 +96,12 @@ Mohammad Bin Aftab <48010758+MohammadBinAftab@users.noreply.github.com>
9596
Mohammad Kaif <mdkaifprofession@gmail.com>
9697
Momtchil Momtchev <momtchil@momtchev.com>
9798
Muhammad Haris <harriskhan047@outlook.com>
99+
Muhammad Taaha Tariq <166188821+Taaha-Tariq@users.noreply.github.com>
100+
Muhmmad Saad <106260977+saad-imran-dev@users.noreply.github.com>
98101
Naresh Jagadeesan <naresh.naresh000@gmail.com>
99102
Naveen Kumar <stupiddint@gmail.com>
100103
Neeraj Pathak <neerajrpathak710@gmail.com>
104+
NirvedMishra <139633597+NirvedMishra@users.noreply.github.com>
101105
Nishant Shinde <97207366+nishant-s7@users.noreply.github.com>
102106
Nishchay Rajput <121144841+NishchayRajput@users.noreply.github.com>
103107
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
@@ -111,6 +115,7 @@ Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
111115
Pranav Goswami <pranavchiku11@gmail.com>
112116
Pranjal Jha <97080887+PraneGIT@users.noreply.github.com>
113117
Prashant Kumar Yadav <144602492+0PrashantYadav0@users.noreply.github.com>
118+
PrathamBhamare <164445568+PrathamBhamare@users.noreply.github.com>
114119
Pratik Singh <97464067+Pratik772846@users.noreply.github.com>
115120
Pratyush Kumar Chouhan <pratyushkumar0308@gmail.com>
116121
Priyansh Prajapati <88396544+itsspriyansh@users.noreply.github.com>
@@ -126,6 +131,7 @@ Rishav <115060907+rishav2404@users.noreply.github.com>
126131
Rishav Tarway <rishavtarway@gmail.com>
127132
Robert Gislason <gztown2216@yahoo.com>
128133
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
134+
Rupa <102663541+Rupa-Rd@users.noreply.github.com>
129135
Rutam Kathale <138517416+performant23@users.noreply.github.com>
130136
Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
131137
Ryan Seal <splrk@users.noreply.github.com>

test/test.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
6666
for ( i = 0; i < x.length; i++ ) {
6767
y = erfc( x[i] );
6868
if ( y === expected[i] ) {
69-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
69+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
7070
} else {
7171
delta = abs( y - expected[ i ] );
7272
tol = EPS * abs( expected[ i ] );
@@ -89,7 +89,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
8989
for ( i = 0; i < x.length; i++ ) {
9090
y = erfc( x[i] );
9191
if ( y === expected[i] ) {
92-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
92+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
9393
} else {
9494
delta = abs( y - expected[ i ] );
9595
tol = EPS * abs( expected[ i ] );
@@ -112,7 +112,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
112112
for ( i = 0; i < x.length; i++ ) {
113113
y = erfc( x[i] );
114114
if ( y === expected[i] ) {
115-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
115+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
116116
} else {
117117
delta = abs( y - expected[ i ] );
118118
tol = EPS * abs( expected[ i ] );
@@ -135,7 +135,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
135135
for ( i = 0; i < x.length; i++ ) {
136136
y = erfc( x[i] );
137137
if ( y === expected[i] ) {
138-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
138+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
139139
} else {
140140
delta = abs( y - expected[ i ] );
141141
tol = EPS * abs( expected[ i ] );
@@ -158,7 +158,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
158158
for ( i = 0; i < x.length; i++ ) {
159159
y = erfc( x[i] );
160160
if ( y === expected[i] ) {
161-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
161+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
162162
} else {
163163
delta = abs( y - expected[ i ] );
164164
tol = EPS * abs( expected[ i ] );
@@ -181,7 +181,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
181181
for ( i = 0; i < x.length; i++ ) {
182182
y = erfc( x[i] );
183183
if ( y === expected[i] ) {
184-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
184+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
185185
} else {
186186
delta = abs( y - expected[ i ] );
187187
tol = EPS * abs( expected[ i ] );
@@ -204,7 +204,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
204204
for ( i = 0; i < x.length; i++ ) {
205205
y = erfc( x[i] );
206206
if ( y === expected[i] ) {
207-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
207+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
208208
} else {
209209
delta = abs( y - expected[ i ] );
210210
tol = EPS * abs( expected[ i ] );
@@ -224,7 +224,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
224224
x = smallPositive.x;
225225
for ( i = 0; i < x.length; i++ ) {
226226
y = erfc( x[i] );
227-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
227+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
228228
}
229229
t.end();
230230
});
@@ -239,7 +239,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
239239
x = smaller.x;
240240
for ( i = 0; i < x.length; i++ ) {
241241
y = erfc( x[i] );
242-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
242+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
243243
}
244244
t.end();
245245
});
@@ -254,7 +254,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
254254
x = tinyNegative.x;
255255
for ( i = 0; i < x.length; i++ ) {
256256
y = erfc( x[i] );
257-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
257+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
258258
}
259259
t.end();
260260
});
@@ -269,7 +269,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
269269
x = tinyPositive.x;
270270
for ( i = 0; i < x.length; i++ ) {
271271
y = erfc( x[i] );
272-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
272+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
273273
}
274274
t.end();
275275
});
@@ -284,37 +284,37 @@ tape( 'the function evaluates the complementary error function for subnormal `x`
284284
x = subnormal.x;
285285
for ( i = 0; i < x.length; i++ ) {
286286
y = erfc( x[i] );
287-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
287+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
288288
}
289289
t.end();
290290
});
291291

292292
tape( 'if provided `-0`, the function returns `1`', function test( t ) {
293293
var y = erfc( -0.0 );
294-
t.equal( y, 1.0, 'returns expected value' );
294+
t.strictEqual( y, 1.0, 'returns expected value' );
295295
t.end();
296296
});
297297

298298
tape( 'if provided `+0`, the function returns `1`', function test( t ) {
299299
var y = erfc( +0.0 );
300-
t.equal( y, 1.0, 'returns expected value' );
300+
t.strictEqual( y, 1.0, 'returns expected value' );
301301
t.end();
302302
});
303303

304304
tape( 'if provided `-infinity`, the function returns `2`', function test( t ) {
305305
var y = erfc( NINF );
306-
t.equal( y, 2.0, 'returns expected value' );
306+
t.strictEqual( y, 2.0, 'returns expected value' );
307307
t.end();
308308
});
309309

310310
tape( 'if provided `+infinity`, the function returns `0`', function test( t ) {
311311
var y = erfc( PINF );
312-
t.equal( y, 0.0, 'returns expected value' );
312+
t.strictEqual( y, 0.0, 'returns expected value' );
313313
t.end();
314314
});
315315

316316
tape( 'if provided `NaN`, the function returns `NaN`', function test( t ) {
317317
var y = erfc( NaN );
318-
t.equal( isnan( y ), true, 'returns expected value' );
318+
t.strictEqual( isnan( y ), true, 'returns expected value' );
319319
t.end();
320320
});

test/test.native.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
7575
for ( i = 0; i < x.length; i++ ) {
7676
y = erfc( x[i] );
7777
if ( y === expected[i] ) {
78-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
78+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
7979
} else {
8080
delta = abs( y - expected[ i ] );
8181
tol = EPS * abs( expected[ i ] );
@@ -98,7 +98,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
9898
for ( i = 0; i < x.length; i++ ) {
9999
y = erfc( x[i] );
100100
if ( y === expected[i] ) {
101-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
101+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
102102
} else {
103103
delta = abs( y - expected[ i ] );
104104
tol = EPS * abs( expected[ i ] );
@@ -121,7 +121,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
121121
for ( i = 0; i < x.length; i++ ) {
122122
y = erfc( x[i] );
123123
if ( y === expected[i] ) {
124-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
124+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
125125
} else {
126126
delta = abs( y - expected[ i ] );
127127
tol = EPS * abs( expected[ i ] );
@@ -144,7 +144,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
144144
for ( i = 0; i < x.length; i++ ) {
145145
y = erfc( x[i] );
146146
if ( y === expected[i] ) {
147-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
147+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
148148
} else {
149149
delta = abs( y - expected[ i ] );
150150
tol = EPS * abs( expected[ i ] );
@@ -167,7 +167,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
167167
for ( i = 0; i < x.length; i++ ) {
168168
y = erfc( x[i] );
169169
if ( y === expected[i] ) {
170-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
170+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
171171
} else {
172172
delta = abs( y - expected[ i ] );
173173
tol = EPS * abs( expected[ i ] );
@@ -190,7 +190,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
190190
for ( i = 0; i < x.length; i++ ) {
191191
y = erfc( x[i] );
192192
if ( y === expected[i] ) {
193-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
193+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
194194
} else {
195195
delta = abs( y - expected[ i ] );
196196
tol = EPS * abs( expected[ i ] );
@@ -213,7 +213,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
213213
for ( i = 0; i < x.length; i++ ) {
214214
y = erfc( x[i] );
215215
if ( y === expected[i] ) {
216-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
216+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
217217
} else {
218218
delta = abs( y - expected[ i ] );
219219
tol = EPS * abs( expected[ i ] );
@@ -233,7 +233,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
233233
x = smallPositive.x;
234234
for ( i = 0; i < x.length; i++ ) {
235235
y = erfc( x[i] );
236-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
236+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
237237
}
238238
t.end();
239239
});
@@ -248,7 +248,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
248248
x = smaller.x;
249249
for ( i = 0; i < x.length; i++ ) {
250250
y = erfc( x[i] );
251-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
251+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
252252
}
253253
t.end();
254254
});
@@ -263,7 +263,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
263263
x = tinyNegative.x;
264264
for ( i = 0; i < x.length; i++ ) {
265265
y = erfc( x[i] );
266-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
266+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
267267
}
268268
t.end();
269269
});
@@ -278,7 +278,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
278278
x = tinyPositive.x;
279279
for ( i = 0; i < x.length; i++ ) {
280280
y = erfc( x[i] );
281-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
281+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
282282
}
283283
t.end();
284284
});
@@ -293,37 +293,37 @@ tape( 'the function evaluates the complementary error function for subnormal `x`
293293
x = subnormal.x;
294294
for ( i = 0; i < x.length; i++ ) {
295295
y = erfc( x[i] );
296-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
296+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
297297
}
298298
t.end();
299299
});
300300

301301
tape( 'if provided `-0`, the function returns `1`', opts, function test( t ) {
302302
var y = erfc( -0.0 );
303-
t.equal( y, 1.0, 'returns expected value' );
303+
t.strictEqual( y, 1.0, 'returns expected value' );
304304
t.end();
305305
});
306306

307307
tape( 'if provided `+0`, the function returns `1`', opts, function test( t ) {
308308
var y = erfc( +0.0 );
309-
t.equal( y, 1.0, 'returns expected value' );
309+
t.strictEqual( y, 1.0, 'returns expected value' );
310310
t.end();
311311
});
312312

313313
tape( 'if provided `-infinity`, the function returns `2`', opts, function test( t ) {
314314
var y = erfc( NINF );
315-
t.equal( y, 2.0, 'returns expected value' );
315+
t.strictEqual( y, 2.0, 'returns expected value' );
316316
t.end();
317317
});
318318

319319
tape( 'if provided `+infinity`, the function returns `0`', opts, function test( t ) {
320320
var y = erfc( PINF );
321-
t.equal( y, 0.0, 'returns expected value' );
321+
t.strictEqual( y, 0.0, 'returns expected value' );
322322
t.end();
323323
});
324324

325325
tape( 'if provided `NaN`, the function returns `NaN`', opts, function test( t ) {
326326
var y = erfc( NaN );
327-
t.equal( isnan( y ), true, 'returns expected value' );
327+
t.strictEqual( isnan( y ), true, 'returns expected value' );
328328
t.end();
329329
});

0 commit comments

Comments
 (0)