Skip to content

Commit e380bf1

Browse files
committed
fix: resolve lint issues
1 parent d04b482 commit e380bf1

2 files changed

Lines changed: 28 additions & 28 deletions

File tree

lib/node_modules/@stdlib/math/base/special/acothf/test/test.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for medium positiv
6565
for ( i = 0; i < x.length; i++ ) {
6666
y = acothf( x[ i ] );
6767
e = f32( expected[ i ] );
68-
if ( isAlmostSameValue( y, e, 4 ) ) {
68+
if ( isAlmostSameValue( y, e, 0 ) ) {
6969
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
7070
} else {
7171
delta = abs( y - e );
72-
tol = 4.0 * EPS * abs( e );
72+
tol = 2.3 * EPS * abs( e );
7373
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' );
7474
}
7575
}
@@ -91,11 +91,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for medium negativ
9191
for ( i = 0; i < x.length; i++ ) {
9292
y = acothf( x[ i ] );
9393
e = f32( expected[ i ] );
94-
if ( isAlmostSameValue( y, e, 4 ) ) {
94+
if ( isAlmostSameValue( y, e, 0 ) ) {
9595
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
9696
} else {
9797
delta = abs( y - e );
98-
tol = 4.0 * EPS * abs( e );
98+
tol = 2.3 * EPS * abs( e );
9999
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' );
100100
}
101101
}
@@ -117,11 +117,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for large positive
117117
for ( i = 0; i < x.length; i++ ) {
118118
y = acothf( x[ i ] );
119119
e = f32( expected[ i ] );
120-
if ( isAlmostSameValue( y, e, 4 ) ) {
120+
if ( isAlmostSameValue( y, e, 0 ) ) {
121121
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
122122
} else {
123123
delta = abs( y - e );
124-
tol = 4.0 * EPS * abs( e );
124+
tol = 2.3 * EPS * abs( e );
125125
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' );
126126
}
127127
}
@@ -143,11 +143,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for large negative
143143
for ( i = 0; i < x.length; i++ ) {
144144
y = acothf( x[ i ] );
145145
e = f32( expected[ i ] );
146-
if ( isAlmostSameValue( y, e, 4 ) ) {
146+
if ( isAlmostSameValue( y, e, 0 ) ) {
147147
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
148148
} else {
149149
delta = abs( y - e );
150-
tol = 4.0 * EPS * abs( e );
150+
tol = 2.3 * EPS * abs( e );
151151
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' );
152152
}
153153
}
@@ -169,11 +169,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for larger positiv
169169
for ( i = 0; i < x.length; i++ ) {
170170
y = acothf( x[ i ] );
171171
e = f32( expected[ i ] );
172-
if ( isAlmostSameValue( y, e, 4 ) ) {
172+
if ( isAlmostSameValue( y, e, 0 ) ) {
173173
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
174174
} else {
175175
delta = abs( y - e );
176-
tol = 4.0 * EPS * abs( e );
176+
tol = 2.3 * EPS * abs( e );
177177
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' );
178178
}
179179
}
@@ -195,11 +195,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for larger negativ
195195
for ( i = 0; i < x.length; i++ ) {
196196
y = acothf( x[ i ] );
197197
e = f32( expected[ i ] );
198-
if ( isAlmostSameValue( y, e, 4 ) ) {
198+
if ( isAlmostSameValue( y, e, 0 ) ) {
199199
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
200200
} else {
201201
delta = abs( y - e );
202-
tol = 4.0 * EPS * abs( e );
202+
tol = 2.3 * EPS * abs( e );
203203
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' );
204204
}
205205
}
@@ -221,7 +221,7 @@ tape( 'the function computes the inverse hyperbolic cotangent for huge positive
221221
for ( i = 0; i < x.length; i++ ) {
222222
y = acothf( x[ i ] );
223223
e = f32( expected[ i ] );
224-
if ( isAlmostSameValue( y, e, 4 ) ) {
224+
if ( isAlmostSameValue( y, e, 0 ) ) {
225225
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
226226
} else {
227227
delta = abs( y - e );
@@ -247,7 +247,7 @@ tape( 'the function computes the inverse hyperbolic cotangent for huge negative
247247
for ( i = 0; i < x.length; i++ ) {
248248
y = acothf( x[ i ] );
249249
e = f32( expected[ i ] );
250-
if ( isAlmostSameValue( y, e, 4 ) ) {
250+
if ( isAlmostSameValue( y, e, 0 ) ) {
251251
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
252252
} else {
253253
delta = abs( y - e );

lib/node_modules/@stdlib/math/base/special/acothf/test/test.native.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for medium positiv
7474
for ( i = 0; i < x.length; i++ ) {
7575
y = acothf( x[ i ] );
7676
e = f32( expected[ i ] );
77-
if ( isAlmostSameValue( y, e, 4 ) ) {
77+
if ( isAlmostSameValue( y, e, 0 ) ) {
7878
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
7979
} else {
8080
delta = abs( y - e );
81-
tol = 4.0 * EPS * abs( e );
81+
tol = 2.3 * EPS * abs( e );
8282
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' );
8383
}
8484
}
@@ -100,11 +100,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for medium negativ
100100
for ( i = 0; i < x.length; i++ ) {
101101
y = acothf( x[ i ] );
102102
e = f32( expected[ i ] );
103-
if ( isAlmostSameValue( y, e, 4 ) ) {
103+
if ( isAlmostSameValue( y, e, 0 ) ) {
104104
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
105105
} else {
106106
delta = abs( y - e );
107-
tol = 4.0 * EPS * abs( e );
107+
tol = 2.3 * EPS * abs( e );
108108
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' );
109109
}
110110
}
@@ -126,11 +126,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for large positive
126126
for ( i = 0; i < x.length; i++ ) {
127127
y = acothf( x[ i ] );
128128
e = f32( expected[ i ] );
129-
if ( isAlmostSameValue( y, e, 4 ) ) {
129+
if ( isAlmostSameValue( y, e, 0 ) ) {
130130
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
131131
} else {
132132
delta = abs( y - e );
133-
tol = 4.0 * EPS * abs( e );
133+
tol = 2.3 * EPS * abs( e );
134134
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' );
135135
}
136136
}
@@ -152,11 +152,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for large negative
152152
for ( i = 0; i < x.length; i++ ) {
153153
y = acothf( x[ i ] );
154154
e = f32( expected[ i ] );
155-
if ( isAlmostSameValue( y, e, 4 ) ) {
155+
if ( isAlmostSameValue( y, e, 0 ) ) {
156156
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
157157
} else {
158158
delta = abs( y - e );
159-
tol = 4.0 * EPS * abs( e );
159+
tol = 2.3 * EPS * abs( e );
160160
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' );
161161
}
162162
}
@@ -178,11 +178,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for larger positiv
178178
for ( i = 0; i < x.length; i++ ) {
179179
y = acothf( x[ i ] );
180180
e = f32( expected[ i ] );
181-
if ( isAlmostSameValue( y, e, 4 ) ) {
181+
if ( isAlmostSameValue( y, e, 0 ) ) {
182182
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
183183
} else {
184184
delta = abs( y - e );
185-
tol = 4.0 * EPS * abs( e );
185+
tol = 2.3 * EPS * abs( e );
186186
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' );
187187
}
188188
}
@@ -204,11 +204,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for larger negativ
204204
for ( i = 0; i < x.length; i++ ) {
205205
y = acothf( x[ i ] );
206206
e = f32( expected[ i ] );
207-
if ( isAlmostSameValue( y, e, 4 ) ) {
207+
if ( isAlmostSameValue( y, e, 0 ) ) {
208208
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
209209
} else {
210210
delta = abs( y - e );
211-
tol = 4.0 * EPS * abs( e );
211+
tol = 2.3 * EPS * abs( e );
212212
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' );
213213
}
214214
}
@@ -230,7 +230,7 @@ tape( 'the function computes the inverse hyperbolic cotangent for huge positive
230230
for ( i = 0; i < x.length; i++ ) {
231231
y = acothf( x[ i ] );
232232
e = f32( expected[ i ] );
233-
if ( isAlmostSameValue( y, e, 4 ) ) {
233+
if ( isAlmostSameValue( y, e, 0 ) ) {
234234
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
235235
} else {
236236
delta = abs( y - e );
@@ -256,7 +256,7 @@ tape( 'the function computes the inverse hyperbolic cotangent for huge negative
256256
for ( i = 0; i < x.length; i++ ) {
257257
y = acothf( x[ i ] );
258258
e = f32( expected[ i ] );
259-
if ( isAlmostSameValue( y, e, 4 ) ) {
259+
if ( isAlmostSameValue( y, e, 0 ) ) {
260260
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' );
261261
} else {
262262
delta = abs( y - e );

0 commit comments

Comments
 (0)