Skip to content

Commit 9b9c746

Browse files
authored
chore: update test messages in constants/float32
PR-URL: #6773 Reviewed-by: Philipp Burckhardt <[email protected]>
1 parent 2e8998e commit 9b9c746

File tree

22 files changed

+24
-24
lines changed

22 files changed

+24
-24
lines changed

lib/node_modules/@stdlib/constants/float32/max-base10-exponent-subnormal/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) {
3333
});
3434

3535
tape( 'the exported value is `-38`', function test( t ) {
36-
t.equal( FLOAT32_MAX_BASE10_EXPONENT_SUBNORMAL, -38, 'equals -38' );
36+
t.equal( FLOAT32_MAX_BASE10_EXPONENT_SUBNORMAL, -38, 'returns expected value' );
3737
t.end();
3838
});

lib/node_modules/@stdlib/constants/float32/max-base10-exponent/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) {
3333
});
3434

3535
tape( 'the exported value is `38`', function test( t ) {
36-
t.equal( FLOAT32_MAX_BASE10_EXPONENT, 38, 'equals 38' );
36+
t.equal( FLOAT32_MAX_BASE10_EXPONENT, 38, 'returns expected value' );
3737
t.end();
3838
});

lib/node_modules/@stdlib/constants/float32/max-base2-exponent-subnormal/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) {
3333
});
3434

3535
tape( 'the exported value is -127', function test( t ) {
36-
t.equal( FLOAT32_MAX_BASE2_EXPONENT_SUBNORMAL, -127, 'equals -127' );
36+
t.equal( FLOAT32_MAX_BASE2_EXPONENT_SUBNORMAL, -127, 'returns expected value' );
3737
t.end();
3838
});

lib/node_modules/@stdlib/constants/float32/max-safe-integer/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ tape( 'main export is a number', function test( t ) {
3434
});
3535

3636
tape( 'the exported value is 2**24-1', function test( t ) {
37-
t.equal( FLOAT32_MAX_SAFE_INTEGER, pow( 2, 24 )-1, 'returns 2**24-1' );
37+
t.equal( FLOAT32_MAX_SAFE_INTEGER, pow( 2, 24 )-1, 'returns expected value' );
3838
t.end();
3939
});

lib/node_modules/@stdlib/constants/float32/min-base10-exponent-subnormal/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) {
3333
});
3434

3535
tape( 'the exported value is `-45`', function test( t ) {
36-
t.equal( FLOAT32_MIN_BASE10_EXPONENT_SUBNORMAL, -45, 'equals -45' );
36+
t.equal( FLOAT32_MIN_BASE10_EXPONENT_SUBNORMAL, -45, 'returns expected value' );
3737
t.end();
3838
});

lib/node_modules/@stdlib/constants/float32/min-base10-exponent/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) {
3333
});
3434

3535
tape( 'the exported value is `-37`', function test( t ) {
36-
t.equal( FLOAT32_MIN_BASE10_EXPONENT, -37, 'equals -37' );
36+
t.equal( FLOAT32_MIN_BASE10_EXPONENT, -37, 'returns expected value' );
3737
t.end();
3838
});

lib/node_modules/@stdlib/constants/float32/min-base2-exponent-subnormal/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) {
3333
});
3434

3535
tape( 'the exported value is -149', function test( t ) {
36-
t.equal( FLOAT32_MIN_BASE2_EXPONENT_SUBNORMAL, -149, 'equals -149' );
36+
t.equal( FLOAT32_MIN_BASE2_EXPONENT_SUBNORMAL, -149, 'returns expected value' );
3737
t.end();
3838
});

lib/node_modules/@stdlib/constants/float32/min-base2-exponent/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) {
3333
});
3434

3535
tape( 'the exported value is `-126`', function test( t ) {
36-
t.equal( FLOAT32_MIN_BASE2_EXPONENT, -126, 'equals -126' );
36+
t.equal( FLOAT32_MIN_BASE2_EXPONENT, -126, 'returns expected value' );
3737
t.end();
3838
});

lib/node_modules/@stdlib/constants/float32/min-safe-integer/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ tape( 'main export is a number', function test( t ) {
3434
});
3535

3636
tape( 'the exported value is -2**24+1', function test( t ) {
37-
t.equal( FLOAT32_MIN_SAFE_INTEGER, -pow( 2, 24 )+1, 'returns -2**24+1' );
37+
t.equal( FLOAT32_MIN_SAFE_INTEGER, -pow( 2, 24 )+1, 'returns expected value' );
3838
t.end();
3939
});

lib/node_modules/@stdlib/constants/float32/ninf/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ tape( 'main export is a number', function test( t ) {
3535

3636
tape( 'export is equal to negative infinity', function test( t ) {
3737
// Note: we rely on implicit type promotion. A 32-bit infinity should be promoted to a 64-bit infinity...
38-
t.equal( FLOAT32_NINF, Number.NEGATIVE_INFINITY, 'equals -infinity' );
38+
t.equal( FLOAT32_NINF, Number.NEGATIVE_INFINITY, 'returns expected value' );
3939
t.end();
4040
});

lib/node_modules/@stdlib/constants/float32/num-bytes/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) {
3333
});
3434

3535
tape( 'the exported value is 4', function test( t ) {
36-
t.equal( NUM_BYTES, 4, 'equals 4' );
36+
t.equal( NUM_BYTES, 4, 'returns expected value' );
3737
t.end();
3838
});

lib/node_modules/@stdlib/constants/float32/phi/test/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ tape( 'main export is a number', function test( t ) {
3535
});
3636

3737
tape( 'export is a double-precision floating-point number equal to 1.6180340051651', function test( t ) {
38-
t.equal( FLOAT32_PHI, float64ToFloat32( 1.618033988749895 ), 'equals 1.6180340051651' );
38+
t.equal( FLOAT32_PHI, float64ToFloat32( 1.618033988749895 ), 'returns expected value' );
3939
t.end();
4040
});
4141

4242
tape( 'the exported value equals ( 1 + sqrtf( 5 ) ) / 2', function test( t ) {
43-
t.equal( FLOAT32_PHI, float64ToFloat32( float64ToFloat32( 1.0 + sqrtf( 5.0 ) ) / 2.0 ), 'equals ( 1 + sqrtf( 5 ) ) / 2' );
43+
t.equal( FLOAT32_PHI, float64ToFloat32( float64ToFloat32( 1.0 + sqrtf( 5.0 ) ) / 2.0 ), 'returns expected value' );
4444
t.end();
4545
});

lib/node_modules/@stdlib/constants/float32/pi-squared/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ tape( 'main export is a number', function test( t ) {
3838
});
3939

4040
tape( 'export is a double-precision floating-point number equal to 9.869604110717773', function test( t ) {
41-
t.equal( FLOAT32_PI_SQUARED, 9.869604110717773, 'equals 9.869604110717773' );
41+
t.equal( FLOAT32_PI_SQUARED, 9.869604110717773, 'returns expected value' );
4242
t.end();
4343
});
4444

lib/node_modules/@stdlib/constants/float32/pinf/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ tape( 'main export is a number', function test( t ) {
3535

3636
tape( 'export is equal to positive infinity', function test( t ) {
3737
// Note: we rely on implicit type promotion. A 32-bit infinity should be promoted to a 64-bit infinity...
38-
t.equal( FLOAT32_PINF, Number.POSITIVE_INFINITY, 'equals +infinity' );
38+
t.equal( FLOAT32_PINF, Number.POSITIVE_INFINITY, 'returns expected value' );
3939
t.end();
4040
});

lib/node_modules/@stdlib/constants/float32/precision/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) {
3333
});
3434

3535
tape( 'the exported value is 24', function test( t ) {
36-
t.equal( FLOAT32_PRECISION, 24, 'equals 24' );
36+
t.equal( FLOAT32_PRECISION, 24, 'returns expected value' );
3737
t.end();
3838
});

lib/node_modules/@stdlib/constants/float32/smallest-normal/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ tape( 'main export is a number', function test( t ) {
3434
});
3535

3636
tape( 'the exported value equals the smallest normal value', function test( t ) {
37-
t.equal( FLOAT32_SMALLEST_NORMAL, pow(2, -126), 'equals 2**-126' );
37+
t.equal( FLOAT32_SMALLEST_NORMAL, pow(2, -126), 'returns expected value' );
3838
t.end();
3939
});

lib/node_modules/@stdlib/constants/float32/smallest-subnormal/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ tape( 'main export is a number', function test( t ) {
3434
});
3535

3636
tape( 'the exported value equals the smallest single-precision floating-point denormalized value', function test( t ) {
37-
t.equal( FLOAT32_SMALLEST_SUBNORMAL, pow(2, -126)*pow(2, -23), 'equals 2**-126 * 2**-23' );
37+
t.equal( FLOAT32_SMALLEST_SUBNORMAL, pow(2, -126)*pow(2, -23), 'returns expected value' );
3838
t.end();
3939
});

lib/node_modules/@stdlib/constants/float32/sqrt-eps/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ tape( 'main export is a number', function test( t ) {
3737

3838
tape( 'the exported value equals the square root of single-precision floating-point epsilon', function test( t ) {
3939
var expected = float64ToFloat32( sqrt( FLOAT32_EPSILON ) );
40-
t.strictEqual( FLOAT32_SQRT_EPSILON, expected, 'equals sqrt(2**-23)' );
40+
t.strictEqual( FLOAT32_SQRT_EPSILON, expected, 'returns expected value' );
4141
t.end();
4242
});

lib/node_modules/@stdlib/constants/float32/sqrt-half-pi/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) {
3333
});
3434

3535
tape( 'the exported value is a single-precision floating-point number equal to `1.2533141374588013`', function test( t ) {
36-
t.equal( FLOAT32_SQRT_HALF_PI, 1.2533141374588013, 'equals 1.2533141374588013' );
36+
t.equal( FLOAT32_SQRT_HALF_PI, 1.2533141374588013, 'returns expected value' );
3737
t.end();
3838
});

lib/node_modules/@stdlib/constants/float32/sqrt-half/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ tape( 'main export is a number', function test( t ) {
3535
});
3636

3737
tape( 'the exported value is a single-precision floating-point number equal to the square root of 1/2', function test( t ) {
38-
t.equal( FLOAT32_SQRT_HALF, float64ToFloat32( sqrtf( 1/2 ) ), 'equals sqrtf(1/2)' );
38+
t.equal( FLOAT32_SQRT_HALF, float64ToFloat32( sqrtf( 1/2 ) ), 'returns expected value' );
3939
t.end();
4040
});

lib/node_modules/@stdlib/constants/float32/sqrt-phi/test/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ tape( 'main export is a number', function test( t ) {
3535
});
3636

3737
tape( 'export is a single-precision floating-point number equal to 1.272019624710083', function test( t ) {
38-
t.equal( FLOAT32_SQRT_PHI, 1.272019624710083, 'equals 1.272019624710083' );
38+
t.equal( FLOAT32_SQRT_PHI, 1.272019624710083, 'returns expected value' );
3939
t.end();
4040
});
4141

4242
tape( 'the exported value equals sqrtf(φ)', function test( t ) {
43-
t.equal( FLOAT32_SQRT_PHI, sqrtf(PHI), 'equals sqrtf(φ)' );
43+
t.equal( FLOAT32_SQRT_PHI, sqrtf(PHI), 'returns expected value' );
4444
t.end();
4545
});

lib/node_modules/@stdlib/constants/float32/sqrt-three/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ tape( 'main export is a number', function test( t ) {
3535
});
3636

3737
tape( 'the exported value is a single-precision floating-point number equal to the square root of 3', function test( t ) {
38-
t.equal( FLOAT32_SQRT3, float64ToFloat32( sqrtf( 3 ) ), 'equals sqrtf(3)' );
38+
t.equal( FLOAT32_SQRT3, float64ToFloat32( sqrtf( 3 ) ), 'returns expected value' );
3939
t.end();
4040
});

0 commit comments

Comments
 (0)