Skip to content

Commit 1ec86d6

Browse files
committed
Auto-generated commit
1 parent 4280ada commit 1ec86d6

File tree

4 files changed

+41
-38
lines changed

4 files changed

+41
-38
lines changed

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-05)
7+
## Unreleased (2025-04-07)
88

99
<section class="reverts">
1010

@@ -34,6 +34,7 @@ This release closes the following issue:
3434

3535
<details>
3636

37+
- [`630ddb7`](https://github.com/stdlib-js/stdlib/commit/630ddb777824b5f6e501fda6dadf4ce41dccb964) - **test:** replace equal with strictEqual _(by Karan Anand)_
3738
- [`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)_
3839
- [`a1e230f`](https://github.com/stdlib-js/stdlib/commit/a1e230f29297caa89880e9c194c615a0400fb7bc) - **chore:** clean up cppcheck-suppress comments _(by Karan Anand)_
3940
- [`bb378ff`](https://github.com/stdlib-js/stdlib/commit/bb378ffa3c07f4acce9504440d26db9d2d97e091) - **docs:** replace manual `for` loop in examples [(#6472)](https://github.com/stdlib-js/stdlib/pull/6472) _(by Harsh)_

CONTRIBUTORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Dev Goel <[email protected]>
4343
Dhanyabad behera <[email protected]>
4444
Dhruv Arvind Singh <[email protected]>
4545
Dhruvil Mehta <[email protected]>
46+
Dipjyoti Das <[email protected]>
4647
Divyansh Seth <[email protected]>
4748
Dominic Lim <[email protected]>
4849
Dominik Moritz <[email protected]>
@@ -114,6 +115,7 @@ Prajwal Kulkarni <[email protected]>
114115
Pranav Goswami <[email protected]>
115116
Pranjal Jha <[email protected]>
116117
Prashant Kumar Yadav <[email protected]>
118+
PrathamBhamare <[email protected]>
117119
Pratik Singh <[email protected]>
118120
Pratyush Kumar Chouhan <[email protected]>
119121
Priyansh Prajapati <[email protected]>

test/test.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ tape( 'the function evaluates the common logarithm of `x` (very large positive v
6262
for ( i = 0; i < x.length; i++ ) {
6363
y = log10( x[i] );
6464
if ( y === expected[i] ) {
65-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
65+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
6666
} else {
6767
delta = abs( y - expected[i] );
6868
tol = EPS * abs( expected[i] );
69-
t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
69+
t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
7070
}
7171
}
7272
t.end();
@@ -85,11 +85,11 @@ tape( 'the function evaluates the common logarithm of `x` (large positive values
8585
for ( i = 0; i < x.length; i++ ) {
8686
y = log10( x[i] );
8787
if ( y === expected[i] ) {
88-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
88+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
8989
} else {
9090
delta = abs( y - expected[i] );
9191
tol = EPS * abs( expected[i] );
92-
t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
92+
t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
9393
}
9494
}
9595
t.end();
@@ -108,11 +108,11 @@ tape( 'the function evaluates the common logarithm of `x` (medium positive value
108108
for ( i = 0; i < x.length; i++ ) {
109109
y = log10( x[i] );
110110
if ( y === expected[i] ) {
111-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
111+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
112112
} else {
113113
delta = abs( y - expected[i] );
114114
tol = EPS * abs( expected[i] );
115-
t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
115+
t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
116116
}
117117
}
118118
t.end();
@@ -131,11 +131,11 @@ tape( 'the function evaluates the common logarithm of `x` (small positive values
131131
for ( i = 0; i < x.length; i++ ) {
132132
y = log10( x[i] );
133133
if ( y === expected[i] ) {
134-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
134+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
135135
} else {
136136
delta = abs( y - expected[i] );
137137
tol = EPS * abs( expected[i] );
138-
t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
138+
t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
139139
}
140140
}
141141
t.end();
@@ -154,11 +154,11 @@ tape( 'the function evaluates the common logarithm of `x` (smaller values)', fun
154154
for ( i = 0; i < x.length; i++ ) {
155155
y = log10( x[i] );
156156
if ( y === expected[i] ) {
157-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
157+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
158158
} else {
159159
delta = abs( y - expected[i] );
160160
tol = EPS * abs( expected[i] );
161-
t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
161+
t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
162162
}
163163
}
164164
t.end();
@@ -177,11 +177,11 @@ tape( 'the function evaluates the common logarithm of `x` (tiny positive values)
177177
for ( i = 0; i < x.length; i++ ) {
178178
y = log10( x[i] );
179179
if ( y === expected[i] ) {
180-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
180+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
181181
} else {
182182
delta = abs( y - expected[i] );
183183
tol = EPS * abs( expected[i] );
184-
t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
184+
t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
185185
}
186186
}
187187
t.end();
@@ -200,34 +200,34 @@ tape( 'the function evaluates the common logarithm of `x` (subnormal values)', f
200200
for ( i = 0; i < x.length; i++ ) {
201201
y = log10( x[i] );
202202
if ( y === expected[i] ) {
203-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
203+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
204204
} else {
205205
delta = abs( y - expected[i] );
206206
tol = EPS * abs( expected[i] );
207-
t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
207+
t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
208208
}
209209
}
210210
t.end();
211211
});
212212

213213
tape( 'the function returns `-infinity` if provided `0`', function test( t ) {
214-
t.equal( log10( 0.0 ), NINF, 'returns expected value' );
214+
t.strictEqual( log10( 0.0 ), NINF, 'returns expected value' );
215215
t.end();
216216
});
217217

218218
tape( 'the function returns `+infinity` if provided `+infinity`', function test( t ) {
219-
t.equal( log10( PINF ), PINF, 'returns expected value' );
219+
t.strictEqual( log10( PINF ), PINF, 'returns expected value' );
220220
t.end();
221221
});
222222

223223
tape( 'the function returns `NaN` if provided a negative number', function test( t ) {
224224
var v = log10( -1.0 );
225-
t.equal( isnan( v ), true, 'returns expected value' );
225+
t.strictEqual( isnan( v ), true, 'returns expected value' );
226226
t.end();
227227
});
228228

229229
tape( 'the function returns positive zero if provided `1.0`', function test( t ) {
230230
var v = log10( 1.0 );
231-
t.equal( isPositiveZero( v ), true, 'returns expected value' );
231+
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
232232
t.end();
233233
});

test/test.native.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var opts = {
5454

5555
tape( 'main export is a function', opts, function test( t ) {
5656
t.ok( true, __filename );
57-
t.equal( typeof log10, 'function', 'main export is a function' );
57+
t.strictEqual( typeof log10, 'function', 'main export is a function' );
5858
t.end();
5959
});
6060

@@ -71,11 +71,11 @@ tape( 'the function evaluates the common logarithm of `x` (very large positive v
7171
for ( i = 0; i < x.length; i++ ) {
7272
y = log10( x[i] );
7373
if ( y === expected[i] ) {
74-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
74+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
7575
} else {
7676
delta = abs( y - expected[i] );
7777
tol = EPS * abs( expected[i] );
78-
t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
78+
t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
7979
}
8080
}
8181
t.end();
@@ -94,11 +94,11 @@ tape( 'the function evaluates the common logarithm of `x` (large positive values
9494
for ( i = 0; i < x.length; i++ ) {
9595
y = log10( x[i] );
9696
if ( y === expected[i] ) {
97-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
97+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
9898
} else {
9999
delta = abs( y - expected[i] );
100100
tol = EPS * abs( expected[i] );
101-
t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
101+
t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
102102
}
103103
}
104104
t.end();
@@ -117,11 +117,11 @@ tape( 'the function evaluates the common logarithm of `x` (medium positive value
117117
for ( i = 0; i < x.length; i++ ) {
118118
y = log10( x[i] );
119119
if ( y === expected[i] ) {
120-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
120+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
121121
} else {
122122
delta = abs( y - expected[i] );
123123
tol = EPS * abs( expected[i] );
124-
t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
124+
t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
125125
}
126126
}
127127
t.end();
@@ -140,11 +140,11 @@ tape( 'the function evaluates the common logarithm of `x` (small positive values
140140
for ( i = 0; i < x.length; i++ ) {
141141
y = log10( x[i] );
142142
if ( y === expected[i] ) {
143-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
143+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
144144
} else {
145145
delta = abs( y - expected[i] );
146146
tol = EPS * abs( expected[i] );
147-
t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
147+
t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
148148
}
149149
}
150150
t.end();
@@ -163,11 +163,11 @@ tape( 'the function evaluates the common logarithm of `x` (smaller values)', opt
163163
for ( i = 0; i < x.length; i++ ) {
164164
y = log10( x[i] );
165165
if ( y === expected[i] ) {
166-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
166+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
167167
} else {
168168
delta = abs( y - expected[i] );
169169
tol = EPS * abs( expected[i] );
170-
t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
170+
t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
171171
}
172172
}
173173
t.end();
@@ -186,11 +186,11 @@ tape( 'the function evaluates the common logarithm of `x` (tiny positive values)
186186
for ( i = 0; i < x.length; i++ ) {
187187
y = log10( x[i] );
188188
if ( y === expected[i] ) {
189-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
189+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
190190
} else {
191191
delta = abs( y - expected[i] );
192192
tol = EPS * abs( expected[i] );
193-
t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
193+
t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
194194
}
195195
}
196196
t.end();
@@ -209,34 +209,34 @@ tape( 'the function evaluates the common logarithm of `x` (subnormal values)', o
209209
for ( i = 0; i < x.length; i++ ) {
210210
y = log10( x[i] );
211211
if ( y === expected[i] ) {
212-
t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
212+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
213213
} else {
214214
delta = abs( y - expected[i] );
215215
tol = EPS * abs( expected[i] );
216-
t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
216+
t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. Tolerance: '+tol+'.' );
217217
}
218218
}
219219
t.end();
220220
});
221221

222222
tape( 'the function returns `-infinity` if provided `0`', opts, function test( t ) {
223-
t.equal( log10( 0.0 ), NINF, 'returns expected value' );
223+
t.strictEqual( log10( 0.0 ), NINF, 'returns expected value' );
224224
t.end();
225225
});
226226

227227
tape( 'the function returns `+infinity` if provided `+infinity`', opts, function test( t ) {
228-
t.equal( log10( PINF ), PINF, 'returns expected value' );
228+
t.strictEqual( log10( PINF ), PINF, 'returns expected value' );
229229
t.end();
230230
});
231231

232232
tape( 'the function returns `NaN` if provided a negative number', opts, function test( t ) {
233233
var v = log10( -1.0 );
234-
t.equal( isnan( v ), true, 'returns expected value' );
234+
t.strictEqual( isnan( v ), true, 'returns expected value' );
235235
t.end();
236236
});
237237

238238
tape( 'the function returns positive zero if provided `1.0`', opts, function test( t ) {
239239
var v = log10( 1.0 );
240-
t.equal( isPositiveZero( v ), true, 'returns expected value' );
240+
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
241241
t.end();
242242
});

0 commit comments

Comments
 (0)