Skip to content

Commit

Permalink
Update test.native.js
Browse files Browse the repository at this point in the history
Signed-off-by: Gunj Joshi <[email protected]>
  • Loading branch information
gunjjoshi authored Nov 16, 2024
1 parent 5f84013 commit 3bd7f25
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ tape( 'the function computes the inverse half-value versed sine (small positive

tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) {
var v = ahaversinf( NaN );
t.strictEqual( isnanf( v ), true, 'returns NaN' );
t.strictEqual( isnanf( v ), true, 'returns expected value' );
t.end();
});

Expand All @@ -110,7 +110,7 @@ tape( 'the function returns `NaN` if provided a value less than `0`', opts, func
var i;
for ( i = 0; i < 1e4; i++ ) {
v = -( randu() * 1.0e6 ) - EPS;
t.strictEqual( isnanf( ahaversinf( v ) ), true, 'returns NaN when provided '+v );
t.strictEqual( isnanf( ahaversinf( v ) ), true, 'returns expected value when provided '+v );
}
t.end();
});
Expand All @@ -120,7 +120,7 @@ tape( 'the function returns `NaN` if provided a value greater than `1`', opts, f
var i;
for ( i = 0; i < 1e4; i++ ) {
v = ( randu() * 1.0e6 ) + 1.0 + EPS;
t.strictEqual( isnanf( ahaversinf( v ) ), true, 'returns NaN when provided '+v );
t.strictEqual( isnanf( ahaversinf( v ) ), true, 'returns expected value when provided '+v );
}
t.end();
});

0 comments on commit 3bd7f25

Please sign in to comment.