Skip to content

Commit c9e68e6

Browse files
committed
chore: stuff from code review
1 parent eac619c commit c9e68e6

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

lib/node_modules/@stdlib/math/base/special/cinvf/test/fixtures/julia/runner.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ julia> gen( re, im, \"data.json\" );
3838
```
3939
"""
4040
function gen( re, im, name )
41-
zre = Array{Float32}( undef, length(re) );
42-
zim = Array{Float32}( undef, length(re) );
41+
zre = Array{Float32}( undef, length( re ) );
42+
zim = Array{Float32}( undef, length( re ) );
4343
for i in eachindex(re)
4444
z = 1.0 / Complex{Float32}( re[ i ], im[ i ] );
4545
zre[ i ] = real( z );

lib/node_modules/@stdlib/math/base/special/cinvf/test/test.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -393,36 +393,36 @@ tape( 'the function may produce very large values for very small inputs', functi
393393
var v;
394394

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

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

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

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

411411
v = cinvf( new Complex64( 0.0, FLOAT32_SMALLEST_NORMAL ) );
412-
t.strictEqual( real( v ), 0.0, 'real component is 0' );
413-
t.ok( imag( v ) < tiny, 'imaginary component is very large and negative' );
412+
t.strictEqual( real( v ), 0.0, 'returns expected value.' );
413+
t.ok( imag( v ) < tiny, 'returns expected value.' );
414414

415415
v = cinvf( new Complex64( 0.0, -FLOAT32_SMALLEST_NORMAL ) );
416-
t.strictEqual( real( v ), 0.0, 'real component is 0' );
417-
t.ok( imag( v ) > huge, 'imaginary component is very large and positive' );
416+
t.strictEqual( real( v ), 0.0, 'returns expected value.' );
417+
t.ok( imag( v ) > huge, 'returns expected value.' );
418418

419419
v = cinvf( new Complex64( FLOAT32_SMALLEST_NORMAL, 0.0 ) );
420-
t.ok( real( v ) > huge, 'real component is very large and positive' );
421-
t.strictEqual( imag( v ), 0.0, 'imaginary component is 0' );
420+
t.ok( real( v ) > huge, 'returns expected value.' );
421+
t.strictEqual( imag( v ), 0.0, 'returns expected value.' );
422422

423423
v = cinvf( new Complex64( -FLOAT32_SMALLEST_NORMAL, 0.0 ) );
424-
t.ok( real( v ) < tiny, 'real component is very large and negative' );
425-
t.strictEqual( imag( v ), 0.0, 'imaginary component is 0' );
424+
t.ok( real( v ) < tiny, 'returns expected value.' );
425+
t.strictEqual( imag( v ), 0.0, 'returns expected value.' );
426426

427427
t.end();
428428
});

lib/node_modules/@stdlib/math/base/special/cinvf/test/test.native.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -402,36 +402,36 @@ tape( 'the function may produce very large values for very small inputs', opts,
402402
var v;
403403

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

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

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

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

420420
v = cinvf( new Complex64( 0.0, FLOAT32_SMALLEST_NORMAL ) );
421-
t.strictEqual( real( v ), 0.0, 'real component is 0' );
422-
t.ok( imag( v ) < tiny, 'imaginary component is very large and negative' );
421+
t.strictEqual( real( v ), 0.0, 'returns expected value.' );
422+
t.ok( imag( v ) < tiny, 'returns expected value.' );
423423

424424
v = cinvf( new Complex64( 0.0, -FLOAT32_SMALLEST_NORMAL ) );
425-
t.strictEqual( real( v ), 0.0, 'real component is 0' );
426-
t.ok( imag( v ) > huge, 'imaginary component is very large and positive' );
425+
t.strictEqual( real( v ), 0.0, 'returns expected value.' );
426+
t.ok( imag( v ) > huge, 'returns expected value.' );
427427

428428
v = cinvf( new Complex64( FLOAT32_SMALLEST_NORMAL, 0.0 ) );
429-
t.ok( real( v ) > huge, 'real component is very large and positive' );
430-
t.strictEqual( imag( v ), 0.0, 'imaginary component is 0' );
429+
t.ok( real( v ) > huge, 'returns expected value.' );
430+
t.strictEqual( imag( v ), 0.0, 'returns expected value.' );
431431

432432
v = cinvf( new Complex64( -FLOAT32_SMALLEST_NORMAL, 0.0 ) );
433-
t.ok( real( v ) < tiny, 'real component is very large and negative' );
434-
t.strictEqual( imag( v ), 0.0, 'imaginary component is 0' );
433+
t.ok( real( v ) < tiny, 'returns expected value.' );
434+
t.strictEqual( imag( v ), 0.0, 'returns expected value.' );
435435

436436
t.end();
437437
});

0 commit comments

Comments
 (0)