Skip to content

Commit c8b533f

Browse files
committed
chore: changes according to code review
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 3ee1eff commit c8b533f

2 files changed

Lines changed: 20 additions & 12 deletions

File tree

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ tape( 'the function computes the hyperbolic arccosecant on the interval [-100.0,
230230
t.end();
231231
});
232232

233-
tape( 'the function computes the hyperbolic arccosecant on the interval [-1e200,-1e208]', function test( t ) {
233+
tape( 'the function computes the hyperbolic arccosecant on the interval [-1e30,-1e38]', function test( t ) {
234234
var expected;
235235
var x;
236236
var y;
@@ -248,7 +248,7 @@ tape( 'the function computes the hyperbolic arccosecant on the interval [-1e200,
248248
t.end();
249249
});
250250

251-
tape( 'the function computes the hyperbolic arccosecant on the interval [1e300,1e308]', function test( t ) {
251+
tape( 'the function computes the hyperbolic arccosecant on the interval [1e30,1e38]', function test( t ) {
252252
var expected;
253253
var x;
254254
var y;
@@ -286,22 +286,26 @@ tape( 'the function returns +0 if provided +infinity', function test( t ) {
286286
});
287287

288288
tape( 'the function evaluates the inverse hyperbolic arccosecant for tiny negative values', function test( t ) {
289+
var x;
289290
var i;
290291
var v;
291292

292-
for ( i = 0; i < tinyNegative.length; i++ ) {
293-
v = acschf( tinyNegative[ i ] );
293+
x = tinyNegative.x;
294+
for ( i = 0; i < x.length; i++ ) {
295+
v = acschf( x[ i ] );
294296
t.strictEqual( isnanf( v ), false, 'does not return NaN' );
295297
}
296298
t.end();
297299
});
298300

299301
tape( 'the function evaluates the inverse hyperbolic arccosecant for tiny positive values', function test( t ) {
302+
var x;
300303
var i;
301304
var v;
302305

303-
for ( i = 0; i < tinyPositive.length; i++ ) {
304-
v = acschf( tinyPositive[ i ] );
306+
x = tinyPositive.x;
307+
for ( i = 0; i < x.length; i++ ) {
308+
v = acschf( x[ i ] );
305309
t.strictEqual( isnanf( v ), false, 'does not return NaN' );
306310
}
307311
t.end();

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ tape( 'the function computes the hyperbolic arccosecant on the interval `[-100.0
232232
t.end();
233233
});
234234

235-
tape( 'the function computes the hyperbolic arccosecant on the interval `[-1e200,-1e208]`', opts, function test( t ) {
235+
tape( 'the function computes the hyperbolic arccosecant on the interval `[-1e30,-1e38]`', opts, function test( t ) {
236236
var expected;
237237
var x;
238238
var y;
@@ -251,7 +251,7 @@ tape( 'the function computes the hyperbolic arccosecant on the interval `[-1e200
251251
t.end();
252252
});
253253

254-
tape( 'the function computes the hyperbolic arccosecant on the interval `[1e300,1e308]`', opts, function test( t ) {
254+
tape( 'the function computes the hyperbolic arccosecant on the interval `[1e30,1e38]`', opts, function test( t ) {
255255
var expected;
256256
var x;
257257
var y;
@@ -301,22 +301,26 @@ tape( 'the function returns `+0` if provided `+infinity`', opts, function test(
301301
});
302302

303303
tape( 'the native function evaluates the inverse hyperbolic arccosecant for tiny negative values', opts, function test( t ) {
304+
var x;
304305
var i;
305306
var v;
306307

307-
for ( i = 0; i < tinyNegative.length; i++ ) {
308-
v = acschf( tinyNegative[ i ] );
308+
x = tinyNegative.x;
309+
for ( i = 0; i < x.length; i++ ) {
310+
v = acschf( x[ i ] );
309311
t.strictEqual( isnanf( v ), false, 'does not return NaN' );
310312
}
311313
t.end();
312314
});
313315

314316
tape( 'the native function evaluates the inverse hyperbolic arccosecant for tiny positive values', opts, function test( t ) {
317+
var x;
315318
var i;
316319
var v;
317320

318-
for ( i = 0; i < tinyPositive.length; i++ ) {
319-
v = acschf( tinyPositive[ i ] );
321+
x = tinyPositive.x;
322+
for ( i = 0; i < x.length; i++ ) {
323+
v = acschf( x[ i ] );
320324
t.strictEqual( isnanf( v ), false, 'does not return NaN' );
321325
}
322326
t.end();

0 commit comments

Comments
 (0)