Skip to content

Commit d464fa1

Browse files
committed
fix: reorder variable declarations by length in test file
1 parent 1793bfd commit d464fa1

File tree

1 file changed

+7
-3
lines changed
  • lib/node_modules/@stdlib/math/base/special/asechf/test

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ tape( 'the function computes the hyperbolic arcsecant of 1', function test( t )
4343
});
4444

4545
tape( 'the function computes the hyperbolic arcsecant of 0.5', function test( t ) {
46-
var v = asechf( 0.5 );
4746
var expected = float64ToFloat32( 1.3169578969248166 );
48-
var delta = absf( v - expected );
49-
var tol = 10.0 * EPS;
47+
var delta;
48+
var tol;
49+
var v;
50+
51+
v = asechf( 0.5 );
52+
delta = absf( v - expected );
53+
tol = 10.0 * EPS;
5054
t.ok( delta <= tol, 'within tolerance. v: ' + v + '. expected: ' + expected + '. Δ: ' + delta + '. tol: ' + tol + '.' );
5155
t.end();
5256
});

0 commit comments

Comments
 (0)