Skip to content

Commit

Permalink
chore: stuff from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
aayush0325 committed Nov 13, 2024
1 parent 068956c commit 072e306
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,16 +440,16 @@ tape( 'if a real or imaginary component is `NaN`, all components are `NaN`', opt
var v;

v = cinvf( new Complex64( NaN, 3.0 ) );
t.strictEqual( isnanf( real( v ) ), true, 'returns NaN' );
t.strictEqual( isnanf( imag( v ) ), true, 'returns NaN' );
t.strictEqual( isnanf( real( v ) ), true, 'returns expected value' );
t.strictEqual( isnanf( imag( v ) ), true, 'returns expected value' );

v = cinvf( new Complex64( 5.0, NaN ) );
t.strictEqual( isnanf( real( v ) ), true, 'returns NaN' );
t.strictEqual( isnanf( imag( v ) ), true, 'returns NaN' );
t.strictEqual( isnanf( real( v ) ), true, 'returns expected value' );
t.strictEqual( isnanf( imag( v ) ), true, 'returns expected value' );

v = cinvf( new Complex64( NaN, NaN ) );
t.strictEqual( isnanf( real( v ) ), true, 'returns NaN' );
t.strictEqual( isnanf( imag( v ) ), true, 'returns NaN' );
t.strictEqual( isnanf( real( v ) ), true, 'returns expected value' );
t.strictEqual( isnanf( imag( v ) ), true, 'returns expected value' );

t.end();
});

0 comments on commit 072e306

Please sign in to comment.