Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var tape = require( 'tape' );
var FLOAT64_MAX_BASE10_EXPONENT_SUBNORMAL = require( './../lib' );

Check warning on line 24 in lib/node_modules/@stdlib/constants/float64/max-base10-exponent-subnormal/test/test.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Identifier name 'FLOAT64_MAX_BASE10_EXPONENT_SUBNORMAL' is too long (> 25)


// TESTS //
Expand All @@ -33,6 +33,6 @@
});

tape( 'the exported value is `-308`', function test( t ) {
t.equal( FLOAT64_MAX_BASE10_EXPONENT_SUBNORMAL, -308, 'equals -308' );
t.equal( FLOAT64_MAX_BASE10_EXPONENT_SUBNORMAL, -308, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ tape( 'main export is a number', function test( t ) {
});

tape( 'the exported value is 2**53-1', function test( t ) {
t.equal( FLOAT64_MAX_SAFE_INTEGER, pow(2, 53)-1, 'returns 2**53-1' );
t.equal( FLOAT64_MAX_SAFE_INTEGER, pow(2, 53)-1, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var tape = require( 'tape' );
var FLOAT64_MIN_BASE10_EXPONENT_SUBNORMAL = require( './../lib' );

Check warning on line 24 in lib/node_modules/@stdlib/constants/float64/min-base10-exponent-subnormal/test/test.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Identifier name 'FLOAT64_MIN_BASE10_EXPONENT_SUBNORMAL' is too long (> 25)


// TESTS //
Expand All @@ -33,6 +33,6 @@
});

tape( 'the exported value is `-324`', function test( t ) {
t.equal( FLOAT64_MIN_BASE10_EXPONENT_SUBNORMAL, -324, 'equals -324' );
t.equal( FLOAT64_MIN_BASE10_EXPONENT_SUBNORMAL, -324, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var tape = require( 'tape' );
var FLOAT64_MIN_BASE10_EXPONENT = require( './../lib' );

Check warning on line 24 in lib/node_modules/@stdlib/constants/float64/min-base10-exponent/test/test.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Identifier name 'FLOAT64_MIN_BASE10_EXPONENT' is too long (> 25)


// TESTS //
Expand All @@ -33,6 +33,6 @@
});

tape( 'the exported value is `-308`', function test( t ) {
t.equal( FLOAT64_MIN_BASE10_EXPONENT, -308, 'equals -308' );
t.equal( FLOAT64_MIN_BASE10_EXPONENT, -308, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var tape = require( 'tape' );
var FLOAT64_MIN_BASE2_EXPONENT_SUBNORMAL = require( './../lib' );

Check warning on line 24 in lib/node_modules/@stdlib/constants/float64/min-base2-exponent-subnormal/test/test.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Identifier name 'FLOAT64_MIN_BASE2_EXPONENT_SUBNORMAL' is too long (> 25)


// TESTS //
Expand All @@ -33,6 +33,6 @@
});

tape( 'the exported value is -1074', function test( t ) {
t.equal( FLOAT64_MIN_BASE2_EXPONENT_SUBNORMAL, -1074, 'equals -1074' );
t.equal( FLOAT64_MIN_BASE2_EXPONENT_SUBNORMAL, -1074, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var tape = require( 'tape' );
var FLOAT64_MIN_BASE2_EXPONENT = require( './../lib' );

Check warning on line 24 in lib/node_modules/@stdlib/constants/float64/min-base2-exponent/test/test.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Identifier name 'FLOAT64_MIN_BASE2_EXPONENT' is too long (> 25)


// TESTS //
Expand All @@ -33,6 +33,6 @@
});

tape( 'the exported value is `-1022`', function test( t ) {
t.equal( FLOAT64_MIN_BASE2_EXPONENT, -1022, 'equals -1022' );
t.equal( FLOAT64_MIN_BASE2_EXPONENT, -1022, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ tape( 'main export is a number', function test( t ) {
});

tape( 'the exported value is -2**53+1', function test( t ) {
t.equal( FLOAT64_MIN_SAFE_INTEGER, -pow(2, 53)+1, 'returns -2**53+1' );
t.equal( FLOAT64_MIN_SAFE_INTEGER, -pow(2, 53)+1, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ tape( 'main export is a number', function test( t ) {
});

tape( 'export is equal to negative infinity', function test( t ) {
t.equal( FLOAT64_NINF, Number.NEGATIVE_INFINITY, 'equals -infinity' );
t.equal( FLOAT64_NINF, Number.NEGATIVE_INFINITY, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) {
});

tape( 'the exported value is 8', function test( t ) {
t.equal( NUM_BYTES, 8, 'equals 8' );
t.equal( NUM_BYTES, 8, 'returns expected value' );
t.end();
});
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/constants/float64/phi/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ tape( 'main export is a number', function test( t ) {
});

tape( 'export is a double-precision floating-point number equal to 1.618033988749895', function test( t ) {
t.equal( PHI, 1.618033988749895, 'equals 1.618033988749895' );
t.equal( PHI, 1.618033988749895, 'returns expected value' );
t.end();
});

tape( 'the exported value equals (1+sqrt(5))/2', function test( t ) {
t.equal( PHI, (1.0+sqrt(5.0))/2.0, 'equals (1+sqrt(5))/2' );
t.equal( PHI, (1.0+sqrt(5.0))/2.0, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ tape( 'main export is a number', function test( t ) {
});

tape( 'export is a double-precision floating-point number equal to 9.869604401089358', function test( t ) {
t.equal( PI_SQUARED, 9.869604401089358, 'equals 9.869604401089358' );
t.equal( PI_SQUARED, 9.869604401089358, 'returns expected value' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/constants/float64/pi/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) {
});

tape( 'export is a double-precision floating-point number equal to 3.141592653589793', function test( t ) {
t.equal( PI, 3.141592653589793, 'equals 3.141592653589793' );
t.equal( PI, 3.141592653589793, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ tape( 'main export is a number', function test( t ) {
});

tape( 'export is equal to positive infinity', function test( t ) {
t.equal( FLOAT64_PINF, Number.POSITIVE_INFINITY, 'equals +infinity' );
t.equal( FLOAT64_PINF, Number.POSITIVE_INFINITY, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) {
});

tape( 'the exported value is 53', function test( t ) {
t.equal( FLOAT64_PRECISION, 53, 'equals 53' );
t.equal( FLOAT64_PRECISION, 53, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) {
});

tape( 'the exported value equals the smallest normalized double-precision floating-point number', function test( t ) {
t.equal( FLOAT64_SMALLEST_NORMAL, 2.2250738585072014e-308, 'smallest normalized value' );
t.equal( FLOAT64_SMALLEST_NORMAL, 2.2250738585072014e-308, 'returns expected value' );
t.end();
});
Loading