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 ed89c11 commit a054780
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/math/base/special/cinvf/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,19 +392,19 @@ tape( 'the function may produce very large values for very small inputs', functi
var tiny = -1e37;
var v;

v = cinvf( new Complex64( FLOAT32_SMALLEST_NORMAL, FLOAT32_SMALLEST_NORMAL ) );
v = cinvf( new Complex64( FLOAT32_SMALLEST_NORMAL, FLOAT32_SMALLEST_NORMAL ) ); // eslint-disable-line max-len
t.ok( real( v ) > huge, 'real component is very large' );
t.ok( imag( v ) < tiny, 'imaginary component is very large and negative' );

v = cinvf( new Complex64( -FLOAT32_SMALLEST_NORMAL, FLOAT32_SMALLEST_NORMAL ) );
v = cinvf( new Complex64( -FLOAT32_SMALLEST_NORMAL, FLOAT32_SMALLEST_NORMAL ) ); // eslint-disable-line max-len
t.ok( real( v ) < tiny, 'real component is very large and negative' );
t.ok( imag( v ) < tiny, 'imaginary component is very large and negative' );

v = cinvf( new Complex64( -FLOAT32_SMALLEST_NORMAL, -FLOAT32_SMALLEST_NORMAL ) );
v = cinvf( new Complex64( -FLOAT32_SMALLEST_NORMAL, -FLOAT32_SMALLEST_NORMAL ) ); // eslint-disable-line max-len
t.ok( real( v ) < tiny, 'real component is very large and negative' );
t.ok( imag( v ) > huge, 'imaginary component is very large and positive' );

v = cinvf( new Complex64( FLOAT32_SMALLEST_NORMAL, -FLOAT32_SMALLEST_NORMAL ) );
v = cinvf( new Complex64( FLOAT32_SMALLEST_NORMAL, -FLOAT32_SMALLEST_NORMAL ) ); // eslint-disable-line max-len
t.ok( real( v ) > huge, 'real component is very large and positive' );
t.ok( imag( v ) > huge, 'imaginary component is very large and positive' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,19 +401,19 @@ tape( 'the function may produce very large values for very small inputs', opts,
var tiny = -1e37;
var v;

v = cinvf( new Complex64( FLOAT32_SMALLEST_NORMAL, FLOAT32_SMALLEST_NORMAL ) );
v = cinvf( new Complex64( FLOAT32_SMALLEST_NORMAL, FLOAT32_SMALLEST_NORMAL ) ); // eslint-disable-line max-len
t.ok( real( v ) > huge, 'real component is very large' );
t.ok( imag( v ) < tiny, 'imaginary component is very large and negative' );

v = cinvf( new Complex64( -FLOAT32_SMALLEST_NORMAL, FLOAT32_SMALLEST_NORMAL ) );
v = cinvf( new Complex64( -FLOAT32_SMALLEST_NORMAL, FLOAT32_SMALLEST_NORMAL ) ); // eslint-disable-line max-len
t.ok( real( v ) < tiny, 'real component is very large and negative' );
t.ok( imag( v ) < tiny, 'imaginary component is very large and negative' );

v = cinvf( new Complex64( -FLOAT32_SMALLEST_NORMAL, -FLOAT32_SMALLEST_NORMAL ) );
v = cinvf( new Complex64( -FLOAT32_SMALLEST_NORMAL, -FLOAT32_SMALLEST_NORMAL ) ); // eslint-disable-line max-len
t.ok( real( v ) < tiny, 'real component is very large and negative' );
t.ok( imag( v ) > huge, 'imaginary component is very large and positive' );

v = cinvf( new Complex64( FLOAT32_SMALLEST_NORMAL, -FLOAT32_SMALLEST_NORMAL ) );
v = cinvf( new Complex64( FLOAT32_SMALLEST_NORMAL, -FLOAT32_SMALLEST_NORMAL ) ); // eslint-disable-line max-len
t.ok( real( v ) > huge, 'real component is very large and positive' );
t.ok( imag( v ) > huge, 'imaginary component is very large and positive' );

Expand Down

0 comments on commit a054780

Please sign in to comment.