@@ -54,7 +54,7 @@ var opts = {
54
54
55
55
tape ( 'main export is a function' , opts , function test ( t ) {
56
56
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' ) ;
58
58
t . end ( ) ;
59
59
} ) ;
60
60
@@ -71,11 +71,11 @@ tape( 'the function evaluates the common logarithm of `x` (very large positive v
71
71
for ( i = 0 ; i < x . length ; i ++ ) {
72
72
y = log10 ( x [ i ] ) ;
73
73
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 ] ) ;
75
75
} else {
76
76
delta = abs ( y - expected [ i ] ) ;
77
77
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 + '.' ) ;
79
79
}
80
80
}
81
81
t . end ( ) ;
@@ -94,11 +94,11 @@ tape( 'the function evaluates the common logarithm of `x` (large positive values
94
94
for ( i = 0 ; i < x . length ; i ++ ) {
95
95
y = log10 ( x [ i ] ) ;
96
96
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 ] ) ;
98
98
} else {
99
99
delta = abs ( y - expected [ i ] ) ;
100
100
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 + '.' ) ;
102
102
}
103
103
}
104
104
t . end ( ) ;
@@ -117,11 +117,11 @@ tape( 'the function evaluates the common logarithm of `x` (medium positive value
117
117
for ( i = 0 ; i < x . length ; i ++ ) {
118
118
y = log10 ( x [ i ] ) ;
119
119
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 ] ) ;
121
121
} else {
122
122
delta = abs ( y - expected [ i ] ) ;
123
123
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 + '.' ) ;
125
125
}
126
126
}
127
127
t . end ( ) ;
@@ -140,11 +140,11 @@ tape( 'the function evaluates the common logarithm of `x` (small positive values
140
140
for ( i = 0 ; i < x . length ; i ++ ) {
141
141
y = log10 ( x [ i ] ) ;
142
142
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 ] ) ;
144
144
} else {
145
145
delta = abs ( y - expected [ i ] ) ;
146
146
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 + '.' ) ;
148
148
}
149
149
}
150
150
t . end ( ) ;
@@ -163,11 +163,11 @@ tape( 'the function evaluates the common logarithm of `x` (smaller values)', opt
163
163
for ( i = 0 ; i < x . length ; i ++ ) {
164
164
y = log10 ( x [ i ] ) ;
165
165
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 ] ) ;
167
167
} else {
168
168
delta = abs ( y - expected [ i ] ) ;
169
169
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 + '.' ) ;
171
171
}
172
172
}
173
173
t . end ( ) ;
@@ -186,11 +186,11 @@ tape( 'the function evaluates the common logarithm of `x` (tiny positive values)
186
186
for ( i = 0 ; i < x . length ; i ++ ) {
187
187
y = log10 ( x [ i ] ) ;
188
188
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 ] ) ;
190
190
} else {
191
191
delta = abs ( y - expected [ i ] ) ;
192
192
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 + '.' ) ;
194
194
}
195
195
}
196
196
t . end ( ) ;
@@ -209,34 +209,34 @@ tape( 'the function evaluates the common logarithm of `x` (subnormal values)', o
209
209
for ( i = 0 ; i < x . length ; i ++ ) {
210
210
y = log10 ( x [ i ] ) ;
211
211
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 ] ) ;
213
213
} else {
214
214
delta = abs ( y - expected [ i ] ) ;
215
215
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 + '.' ) ;
217
217
}
218
218
}
219
219
t . end ( ) ;
220
220
} ) ;
221
221
222
222
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' ) ;
224
224
t . end ( ) ;
225
225
} ) ;
226
226
227
227
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' ) ;
229
229
t . end ( ) ;
230
230
} ) ;
231
231
232
232
tape ( 'the function returns `NaN` if provided a negative number' , opts , function test ( t ) {
233
233
var v = log10 ( - 1.0 ) ;
234
- t . equal ( isnan ( v ) , true , 'returns expected value' ) ;
234
+ t . strictEqual ( isnan ( v ) , true , 'returns expected value' ) ;
235
235
t . end ( ) ;
236
236
} ) ;
237
237
238
238
tape ( 'the function returns positive zero if provided `1.0`' , opts , function test ( t ) {
239
239
var v = log10 ( 1.0 ) ;
240
- t . equal ( isPositiveZero ( v ) , true , 'returns expected value' ) ;
240
+ t . strictEqual ( isPositiveZero ( v ) , true , 'returns expected value' ) ;
241
241
t . end ( ) ;
242
242
} ) ;
0 commit comments