From 29c7e6a73aac69e6ed45a5c3eac8f857c091beaf Mon Sep 17 00:00:00 2001 From: hrshya Date: Mon, 21 Apr 2025 22:04:15 +0530 Subject: [PATCH] chore: update test messages in constants/float16 --- .../@stdlib/constants/float16/cbrt-eps/test/test.js | 2 +- lib/node_modules/@stdlib/constants/float16/eps/test/test.js | 2 +- .../@stdlib/constants/float16/exponent-bias/test/test.js | 2 +- .../@stdlib/constants/float16/max-safe-integer/test/test.js | 2 +- lib/node_modules/@stdlib/constants/float16/max/test/test.js | 2 +- .../@stdlib/constants/float16/min-safe-integer/test/test.js | 2 +- lib/node_modules/@stdlib/constants/float16/ninf/test/test.js | 2 +- .../@stdlib/constants/float16/num-bytes/test/test.js | 2 +- lib/node_modules/@stdlib/constants/float16/pinf/test/test.js | 2 +- .../@stdlib/constants/float16/precision/test/test.js | 2 +- .../@stdlib/constants/float16/smallest-normal/test/test.js | 2 +- .../@stdlib/constants/float16/smallest-subnormal/test/test.js | 2 +- .../@stdlib/constants/float16/sqrt-eps/test/test.js | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/node_modules/@stdlib/constants/float16/cbrt-eps/test/test.js b/lib/node_modules/@stdlib/constants/float16/cbrt-eps/test/test.js index 1b2925dedf26..0a62f466223f 100644 --- a/lib/node_modules/@stdlib/constants/float16/cbrt-eps/test/test.js +++ b/lib/node_modules/@stdlib/constants/float16/cbrt-eps/test/test.js @@ -36,6 +36,6 @@ tape( 'main export is a number', function test( t ) { tape( 'the exported value equals the cube root of half-precision floating-point epsilon', function test( t ) { var expected = cbrt( FLOAT16_EPSILON ); - t.strictEqual( FLOAT16_CBRT_EPSILON, expected, 'equals cbrt(2**-10)' ); + t.strictEqual( FLOAT16_CBRT_EPSILON, expected, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/constants/float16/eps/test/test.js b/lib/node_modules/@stdlib/constants/float16/eps/test/test.js index a0e2a37284f1..d8e560bc2475 100644 --- a/lib/node_modules/@stdlib/constants/float16/eps/test/test.js +++ b/lib/node_modules/@stdlib/constants/float16/eps/test/test.js @@ -35,6 +35,6 @@ tape( 'main export is a number', function test( t ) { tape( 'the exported value equals the difference between one and the smallest value greater than one which is representable as a half-precision floating-point number (2**-10)', function test( t ) { var expected = pow( 2.0, -10 ); - t.strictEqual( FLOAT16_EPSILON, expected, 'equals 2**-10' ); + t.strictEqual( FLOAT16_EPSILON, expected, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/constants/float16/exponent-bias/test/test.js b/lib/node_modules/@stdlib/constants/float16/exponent-bias/test/test.js index 7ab12212f865..51a95062c493 100644 --- a/lib/node_modules/@stdlib/constants/float16/exponent-bias/test/test.js +++ b/lib/node_modules/@stdlib/constants/float16/exponent-bias/test/test.js @@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) { }); tape( 'the exported value is `15`', function test( t ) { - t.equal( FLOAT16_EXPONENT_BIAS, 15, 'equals 15' ); + t.equal( FLOAT16_EXPONENT_BIAS, 15, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/constants/float16/max-safe-integer/test/test.js b/lib/node_modules/@stdlib/constants/float16/max-safe-integer/test/test.js index 99e3ecd81cfb..68cfe880bcf4 100644 --- a/lib/node_modules/@stdlib/constants/float16/max-safe-integer/test/test.js +++ b/lib/node_modules/@stdlib/constants/float16/max-safe-integer/test/test.js @@ -34,6 +34,6 @@ tape( 'main export is a number', function test( t ) { }); tape( 'the exported value is 2**11-1', function test( t ) { - t.equal( FLOAT16_MAX_SAFE_INTEGER, pow( 2.0, 11 ) - 1.0, 'returns 2**11-1' ); + t.equal( FLOAT16_MAX_SAFE_INTEGER, pow( 2.0, 11 ) - 1.0, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/constants/float16/max/test/test.js b/lib/node_modules/@stdlib/constants/float16/max/test/test.js index d96bf101abe9..0e9144a7ec38 100644 --- a/lib/node_modules/@stdlib/constants/float16/max/test/test.js +++ b/lib/node_modules/@stdlib/constants/float16/max/test/test.js @@ -34,6 +34,6 @@ tape( 'main export is a number', function test( t ) { }); tape( 'export is equal to the maximum half-precision floating-point number', function test( t ) { - t.equal( FLOAT16_MAX, pow(2, 15) * (2-pow(2, -10)), 'equals max value' ); + t.equal( FLOAT16_MAX, pow(2, 15) * (2-pow(2, -10)), 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/constants/float16/min-safe-integer/test/test.js b/lib/node_modules/@stdlib/constants/float16/min-safe-integer/test/test.js index deafbcc2ba49..f839cdea462f 100644 --- a/lib/node_modules/@stdlib/constants/float16/min-safe-integer/test/test.js +++ b/lib/node_modules/@stdlib/constants/float16/min-safe-integer/test/test.js @@ -34,6 +34,6 @@ tape( 'main export is a number', function test( t ) { }); tape( 'the exported value is -2**11+1', function test( t ) { - t.equal( FLOAT16_MIN_SAFE_INTEGER, -pow( 2.0, 11 )+1, 'returns -2**11+1' ); + t.equal( FLOAT16_MIN_SAFE_INTEGER, -pow( 2.0, 11 )+1, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/constants/float16/ninf/test/test.js b/lib/node_modules/@stdlib/constants/float16/ninf/test/test.js index 4dc097da2e47..5bc2698829b9 100644 --- a/lib/node_modules/@stdlib/constants/float16/ninf/test/test.js +++ b/lib/node_modules/@stdlib/constants/float16/ninf/test/test.js @@ -35,6 +35,6 @@ tape( 'main export is a number', function test( t ) { tape( 'export is equal to negative infinity', function test( t ) { // Note: we rely on implicit type promotion. A 16-bit infinity should be promoted to a 64-bit infinity... - t.equal( FLOAT16_NINF, Number.NEGATIVE_INFINITY, 'equals -infinity' ); + t.equal( FLOAT16_NINF, Number.NEGATIVE_INFINITY, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/constants/float16/num-bytes/test/test.js b/lib/node_modules/@stdlib/constants/float16/num-bytes/test/test.js index d3b9eee8b0cf..039e906a7cfe 100644 --- a/lib/node_modules/@stdlib/constants/float16/num-bytes/test/test.js +++ b/lib/node_modules/@stdlib/constants/float16/num-bytes/test/test.js @@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) { }); tape( 'the exported value is 2', function test( t ) { - t.equal( NUM_BYTES, 2, 'equals 2' ); + t.equal( NUM_BYTES, 2, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/constants/float16/pinf/test/test.js b/lib/node_modules/@stdlib/constants/float16/pinf/test/test.js index 9a29ff376c80..39f08b453853 100644 --- a/lib/node_modules/@stdlib/constants/float16/pinf/test/test.js +++ b/lib/node_modules/@stdlib/constants/float16/pinf/test/test.js @@ -35,6 +35,6 @@ tape( 'main export is a number', function test( t ) { tape( 'export is equal to positive infinity', function test( t ) { // Note: we rely on implicit type promotion. A 16-bit infinity should be promoted to a 64-bit infinity... - t.equal( FLOAT16_PINF, Number.POSITIVE_INFINITY, 'equals infinity' ); + t.equal( FLOAT16_PINF, Number.POSITIVE_INFINITY, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/constants/float16/precision/test/test.js b/lib/node_modules/@stdlib/constants/float16/precision/test/test.js index b9fcd10d5b39..de620a87d451 100644 --- a/lib/node_modules/@stdlib/constants/float16/precision/test/test.js +++ b/lib/node_modules/@stdlib/constants/float16/precision/test/test.js @@ -33,6 +33,6 @@ tape( 'main export is a number', function test( t ) { }); tape( 'the exported value is 11 (10 significand bits + 1 implicit bit)', function test( t ) { - t.equal( PRECISION, 11, 'equals 11' ); + t.equal( PRECISION, 11, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/constants/float16/smallest-normal/test/test.js b/lib/node_modules/@stdlib/constants/float16/smallest-normal/test/test.js index e1ed8fe0d0bf..5be3fd8e6ef8 100644 --- a/lib/node_modules/@stdlib/constants/float16/smallest-normal/test/test.js +++ b/lib/node_modules/@stdlib/constants/float16/smallest-normal/test/test.js @@ -34,6 +34,6 @@ tape( 'main export is a number', function test( t ) { }); tape( 'the exported value equals the smallest normal value', function test( t ) { - t.equal( FLOAT16_SMALLEST_NORMAL, pow( 2.0, -14 ), 'equals 2**-14' ); + t.equal( FLOAT16_SMALLEST_NORMAL, pow( 2.0, -14 ), 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/constants/float16/smallest-subnormal/test/test.js b/lib/node_modules/@stdlib/constants/float16/smallest-subnormal/test/test.js index 27cf81ca38dc..d368af575a6c 100644 --- a/lib/node_modules/@stdlib/constants/float16/smallest-subnormal/test/test.js +++ b/lib/node_modules/@stdlib/constants/float16/smallest-subnormal/test/test.js @@ -34,6 +34,6 @@ tape( 'main export is a number', function test( t ) { }); tape( 'the exported value equals the smallest half-precision floating-point denormalized value', function test( t ) { - t.equal( FLOAT16_SMALLEST_SUBNORMAL, pow( 2.0, -14 )*pow( 2.0, -10 ), 'equals 2**-14 * 2**-10' ); + t.equal( FLOAT16_SMALLEST_SUBNORMAL, pow( 2.0, -14 )*pow( 2.0, -10 ), 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/constants/float16/sqrt-eps/test/test.js b/lib/node_modules/@stdlib/constants/float16/sqrt-eps/test/test.js index 2fa4fcd9faf4..063bf79dff41 100644 --- a/lib/node_modules/@stdlib/constants/float16/sqrt-eps/test/test.js +++ b/lib/node_modules/@stdlib/constants/float16/sqrt-eps/test/test.js @@ -36,6 +36,6 @@ tape( 'main export is a number', function test( t ) { tape( 'the exported value equals the square root of half-precision floating-point epsilon', function test( t ) { var expected = sqrt( FLOAT16_EPSILON ); - t.strictEqual( FLOAT16_SQRT_EPSILON, expected, 'equals sqrt(2**-10)' ); + t.strictEqual( FLOAT16_SQRT_EPSILON, expected, 'returns expected value' ); t.end(); });