Skip to content

Commit 46bf7bb

Browse files
committed
fix: reorder variable declarations in native test file
1 parent d464fa1 commit 46bf7bb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

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

5454
tape( 'the function computes the hyperbolic arcsecant of 0.5', opts, function test( t ) {
55-
var v = asechf( 0.5 );
5655
var expected = float64ToFloat32( 1.3169578969248166 );
57-
var delta = absf( v - expected );
58-
var tol = 10.0 * EPS;
56+
var delta;
57+
var tol;
58+
var v;
59+
60+
v = asechf( 0.5 );
61+
delta = absf( v - expected );
62+
tol = 10.0 * EPS;
5963
t.ok( delta <= tol, 'within tolerance. v: ' + v + '. expected: ' + expected + '. Δ: ' + delta + '. tol: ' + tol + '.' );
6064
t.end();
6165
});

0 commit comments

Comments
 (0)