From 9aea8878632a5f671dc9fd5ba0e59ffc76c0fff2 Mon Sep 17 00:00:00 2001 From: blessed Date: Mon, 16 Mar 2026 14:13:02 +0100 Subject: [PATCH] chore: update test descriptions for clarity in geometric mgf tests Updated test descriptions to use backticks for code formatting, enhancing readability and consistency across the test suite for the geometric moment generating function (mgf). closes: #10978 Private-ref: https://github.com/stdlib-js/stdlib/pull/10483 Co-authored-by: Blessed Oigbochie --- .../base/dists/geometric/mgf/test/test.factory.js | 2 +- .../stats/base/dists/geometric/mgf/test/test.mgf.js | 12 ++++++------ .../base/dists/geometric/mgf/test/test.native.js | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/geometric/mgf/test/test.factory.js b/lib/node_modules/@stdlib/stats/base/dists/geometric/mgf/test/test.factory.js index 2520f976dfa2..a81f887e95d5 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/geometric/mgf/test/test.factory.js +++ b/lib/node_modules/@stdlib/stats/base/dists/geometric/mgf/test/test.factory.js @@ -150,7 +150,7 @@ tape( 'the created function evaluates the mgf for `x` given large parameter `p`' t.end(); }); -tape( 'the factory function returns NaN when t equals the boundary condition t = -ln(1-p)', function test( t ) { +tape( 'the factory function returns `NaN` when `t` equals the boundary condition `t = -ln(1-p)`', function test( t ) { var boundary; var mgf; var y; diff --git a/lib/node_modules/@stdlib/stats/base/dists/geometric/mgf/test/test.mgf.js b/lib/node_modules/@stdlib/stats/base/dists/geometric/mgf/test/test.mgf.js index d2ac30314868..96b54e50d41b 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/geometric/mgf/test/test.mgf.js +++ b/lib/node_modules/@stdlib/stats/base/dists/geometric/mgf/test/test.mgf.js @@ -122,7 +122,7 @@ tape( 'the function evaluates the MGF for `x` given large parameter `p`', functi t.end(); }); -tape( 'the function returns NaN when t equals the boundary condition t = -ln(1-p)', function test( t ) { +tape( 'the function returns `NaN` when `t` equals the boundary condition `t = -ln(1-p)`', function test( t ) { var boundary; var p; var y; @@ -134,7 +134,7 @@ tape( 'the function returns NaN when t equals the boundary condition t = -ln(1-p t.end(); }); -tape( 'the function returns a finite value when t is just below the boundary condition', function test( t ) { +tape( 'the function returns a finite value when `t` is just below the boundary condition', function test( t ) { var boundary; var p; var y; @@ -147,7 +147,7 @@ tape( 'the function returns a finite value when t is just below the boundary con t.end(); }); -tape( 'the function returns NaN when t is just above the boundary condition', function test( t ) { +tape( 'the function returns NaN when `t` is just above the boundary condition', function test( t ) { var boundary; var p; var y; @@ -159,7 +159,7 @@ tape( 'the function returns NaN when t is just above the boundary condition', fu t.end(); }); -tape( 'the function returns NaN when p equals 0', function test( t ) { +tape( 'the function returns `NaN` when `p` equals `0`', function test( t ) { var y; y = mgf( 0.5, 0.0 ); @@ -167,7 +167,7 @@ tape( 'the function returns NaN when p equals 0', function test( t ) { t.end(); }); -tape( 'the function returns e^t when p equals 1', function test( t ) { +tape( 'the function returns `e^t` when `p` equals `1`', function test( t ) { var y; y = mgf( 0.5, 1.0 ); @@ -175,7 +175,7 @@ tape( 'the function returns e^t when p equals 1', function test( t ) { t.end(); }); -tape( 'the function returns NaN for very small p values due to boundary condition', function test( t ) { +tape( 'the function returns `NaN` for very small `p` values due to boundary condition', function test( t ) { var y; y = mgf( 0.001, 1e-10 ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/geometric/mgf/test/test.native.js b/lib/node_modules/@stdlib/stats/base/dists/geometric/mgf/test/test.native.js index af26c31f9e3b..31c3739b443d 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/geometric/mgf/test/test.native.js +++ b/lib/node_modules/@stdlib/stats/base/dists/geometric/mgf/test/test.native.js @@ -131,7 +131,7 @@ tape( 'the function evaluates the MGF for `x` given large parameter `p`', opts, t.end(); }); -tape( 'the function returns NaN when t equals the boundary condition t = -ln(1-p)', opts, function test( t ) { +tape( 'the function returns `NaN` when `t` equals the boundary condition `t = -ln(1-p)`', opts, function test( t ) { var boundary; var p; var y; @@ -143,7 +143,7 @@ tape( 'the function returns NaN when t equals the boundary condition t = -ln(1-p t.end(); }); -tape( 'the function returns a finite value when t is just below the boundary condition', opts, function test( t ) { +tape( 'the function returns a finite value when `t` is just below the boundary condition', opts, function test( t ) { var boundary; var p; var y; @@ -156,7 +156,7 @@ tape( 'the function returns a finite value when t is just below the boundary con t.end(); }); -tape( 'the function returns NaN when t is just above the boundary condition', opts, function test( t ) { +tape( 'the function returns `NaN` when `t` is just above the boundary condition', opts, function test( t ) { var boundary; var p; var y; @@ -168,7 +168,7 @@ tape( 'the function returns NaN when t is just above the boundary condition', op t.end(); }); -tape( 'the function returns NaN when p equals 0', opts, function test( t ) { +tape( 'the function returns `NaN` when `p` equals `0`', opts, function test( t ) { var y; y = mgf( 0.5, 0.0 ); @@ -176,7 +176,7 @@ tape( 'the function returns NaN when p equals 0', opts, function test( t ) { t.end(); }); -tape( 'the function returns e^t when p equals 1', opts, function test( t ) { +tape( 'the function returns `e^t` when `p` equals `1`', opts, function test( t ) { var y; y = mgf( 0.5, 1.0 ); @@ -184,7 +184,7 @@ tape( 'the function returns e^t when p equals 1', opts, function test( t ) { t.end(); }); -tape( 'the function returns NaN for very small p values due to boundary condition', opts, function test( t ) { +tape( 'the function returns `NaN` for very small `p` values due to boundary condition', opts, function test( t ) { var y; y = mgf( 0.001, 1e-10 );