Skip to content

Commit a60d711

Browse files
authored
test: fix variable name
Signed-off-by: Athan <kgryte@gmail.com>
1 parent e930884 commit a60d711

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • lib/node_modules/@stdlib/constants/float16/half-ln-two/test

lib/node_modules/@stdlib/constants/float16/half-ln-two/test/test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var tape = require( 'tape' );
2424
var lnf = require( '@stdlib/math/base/special/lnf' );
2525
var absf = require( '@stdlib/math/base/special/absf' );
2626
var EPS = require( '@stdlib/constants/float16/eps' );
27-
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float16' );
27+
var float64ToFloat16 = require( '@stdlib/number/float64/base/to-float16' );
2828
var FLOAT16_HALF_LN2 = require( './../lib' );
2929

3030

@@ -37,7 +37,7 @@ tape( 'main export is a number', function test( t ) {
3737
});
3838

3939
tape( 'export is a half-precision floating-point number equal to `0.3466796875`', function test( t ) {
40-
t.strictEqual( FLOAT16_HALF_LN2, float64ToFloat32( 3.46573590279972654709e-01 ), 'returns expected value' );
40+
t.strictEqual( FLOAT16_HALF_LN2, float64ToFloat16( 3.46573590279972654709e-01 ), 'returns expected value' );
4141
t.end();
4242
});
4343

@@ -46,8 +46,8 @@ tape( 'export equals `0.5*lnf(2)`', function test( t ) {
4646
var tol;
4747
var v;
4848

49-
v = float64ToFloat32( 0.5 * lnf( 2.0 ) );
50-
delta = absf( float64ToFloat32( v - FLOAT16_HALF_LN2 ) );
49+
v = float64ToFloat16( 0.5 * lnf( 2.0 ) );
50+
delta = absf( float64ToFloat16( v - FLOAT16_HALF_LN2 ) );
5151
tol = EPS * FLOAT16_HALF_LN2;
5252

5353
t.ok( delta <= tol, 'equals 0.5*lnf(2) within tolerance '+tol );

0 commit comments

Comments
 (0)