@@ -70,7 +70,7 @@ tape( 'the function computes the inverse hyperbolic cotangent for medium positiv
70
70
for ( i = 0 ; i < x . length ; i ++ ) {
71
71
y = acoth ( x [ i ] ) ;
72
72
if ( y === expected [ i ] ) {
73
- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
73
+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
74
74
} else {
75
75
delta = abs ( y - expected [ i ] ) ;
76
76
tol = 1.0 * EPS * abs ( expected [ i ] ) ;
@@ -93,7 +93,7 @@ tape( 'the function computes the inverse hyperbolic cotangent for medium negativ
93
93
for ( i = 0 ; i < x . length ; i ++ ) {
94
94
y = acoth ( x [ i ] ) ;
95
95
if ( y === expected [ i ] ) {
96
- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
96
+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
97
97
} else {
98
98
delta = abs ( y - expected [ i ] ) ;
99
99
tol = 1.0 * EPS * abs ( expected [ i ] ) ;
@@ -116,7 +116,7 @@ tape( 'the function computes the inverse hyperbolic cotangent for large positive
116
116
for ( i = 0 ; i < x . length ; i ++ ) {
117
117
y = acoth ( x [ i ] ) ;
118
118
if ( y === expected [ i ] ) {
119
- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
119
+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
120
120
} else {
121
121
delta = abs ( y - expected [ i ] ) ;
122
122
tol = 1.0 * EPS * abs ( expected [ i ] ) ;
@@ -139,7 +139,7 @@ tape( 'the function computes the inverse hyperbolic cotangent for large negative
139
139
for ( i = 0 ; i < x . length ; i ++ ) {
140
140
y = acoth ( x [ i ] ) ;
141
141
if ( y === expected [ i ] ) {
142
- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
142
+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
143
143
} else {
144
144
delta = abs ( y - expected [ i ] ) ;
145
145
tol = 1.0 * EPS * abs ( expected [ i ] ) ;
@@ -162,7 +162,7 @@ tape( 'the function computes the inverse hyperbolic cotangent for larger positiv
162
162
for ( i = 0 ; i < x . length ; i ++ ) {
163
163
y = acoth ( x [ i ] ) ;
164
164
if ( y === expected [ i ] ) {
165
- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
165
+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
166
166
} else {
167
167
delta = abs ( y - expected [ i ] ) ;
168
168
tol = 1.0 * EPS * abs ( expected [ i ] ) ;
@@ -185,7 +185,7 @@ tape( 'the function computes the inverse hyperbolic cotangent for larger negativ
185
185
for ( i = 0 ; i < x . length ; i ++ ) {
186
186
y = acoth ( x [ i ] ) ;
187
187
if ( y === expected [ i ] ) {
188
- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
188
+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
189
189
} else {
190
190
delta = abs ( y - expected [ i ] ) ;
191
191
tol = 1.0 * EPS * abs ( expected [ i ] ) ;
@@ -208,7 +208,7 @@ tape( 'the function computes the inverse hyperbolic cotangent for huge positive
208
208
for ( i = 0 ; i < x . length ; i ++ ) {
209
209
y = acoth ( x [ i ] ) ;
210
210
if ( y === expected [ i ] ) {
211
- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
211
+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
212
212
} else {
213
213
delta = abs ( y - expected [ i ] ) ;
214
214
tol = 1.0 * EPS * abs ( expected [ i ] ) ;
@@ -231,7 +231,7 @@ tape( 'the function computes the inverse hyperbolic cotangent for huge negative
231
231
for ( i = 0 ; i < x . length ; i ++ ) {
232
232
y = acoth ( x [ i ] ) ;
233
233
if ( y === expected [ i ] ) {
234
- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
234
+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + '. E: ' + expected [ i ] + '.' ) ;
235
235
} else {
236
236
delta = abs ( y - expected [ i ] ) ;
237
237
tol = 1.0 * EPS * abs ( expected [ i ] ) ;
@@ -243,7 +243,7 @@ tape( 'the function computes the inverse hyperbolic cotangent for huge negative
243
243
244
244
tape ( 'the function returns `NaN` if provided `NaN`' , opts , function test ( t ) {
245
245
var v = acoth ( NaN ) ;
246
- t . equal ( isnan ( v ) , true , 'returns expected value' ) ;
246
+ t . strictEqual ( isnan ( v ) , true , 'returns expected value' ) ;
247
247
t . end ( ) ;
248
248
} ) ;
249
249
@@ -253,7 +253,7 @@ tape( 'the function returns `NaN` if provided a value on the open interval (-1,1
253
253
254
254
for ( i = 0 ; i < 1e3 ; i ++ ) {
255
255
v = ( randu ( ) * 2.0 ) - 1.0 ;
256
- t . equal ( isnan ( acoth ( v ) ) , true , 'returns expected value when provided ' + v ) ;
256
+ t . strictEqual ( isnan ( acoth ( v ) ) , true , 'returns expected value when provided ' + v ) ;
257
257
}
258
258
t . end ( ) ;
259
259
} ) ;
0 commit comments