Skip to content

Commit

Permalink
Update test.native.js
Browse files Browse the repository at this point in the history
Signed-off-by: Athan <[email protected]>
  • Loading branch information
kgryte authored Oct 19, 2024
1 parent eca97f0 commit cdfcf8e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,18 @@ tape( 'the function returns `NaN` if both operands are `NaN`', opts, function te
var v;

v = nanmin( NaN, NaN );
t.strictEqual( isnan( v ), true, 'returns NaN value' );
t.strictEqual( isnan( v ), true, 'returns expected value' );
t.end();
});

tape( 'the function returns the non-NaN value if one of the operands is `NaN`', opts, function test( t ) {
var v;

v = nanmin( NaN, 3.14 );
t.strictEqual( v, 3.14, 'returns not NaN value' );
t.strictEqual( v, 3.14, 'returns expected value' );

v = nanmin( 4.2, NaN );
t.strictEqual( v, 4.2, 'returns not NaN value' );
t.strictEqual( v, 4.2, 'returns expected value' );

t.end();
});
Expand All @@ -66,10 +66,10 @@ tape( 'the function returns the minimum value', opts, function test( t ) {
var v;

v = nanmin( 5.2, 3.14 );
t.strictEqual( v, 3.14, 'returns min value' );
t.strictEqual( v, 3.14, 'returns expected value' );

v = nanmin( -4.2, 3.14 );
t.strictEqual( v, -4.2, 'returns min value' );
t.strictEqual( v, -4.2, 'returns expected value' );

t.end();
});

0 comments on commit cdfcf8e

Please sign in to comment.