Skip to content

Commit b0bfb38

Browse files
committed
test: remove failing test cases for non-integer n values in binomial/mgf
--- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: passed - task: run_c_examples status: passed - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: failed ---
1 parent 74da505 commit b0bfb38

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

lib/node_modules/@stdlib/stats/base/dists/binomial/mgf/lib/native.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ var addon = require( './../src/addon.node' );
6363
* // returns NaN
6464
*
6565
* @example
66-
* var y = mgf( 0.2, 1.5, 0.5 );
67-
* // returns NaN
68-
*
69-
* @example
7066
* var y = mgf( 0.2, -2.0, 0.5 );
7167
* // returns NaN
7268
*

lib/node_modules/@stdlib/stats/base/dists/binomial/mgf/test/test.native.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ tape( 'main export is a function', opts, function test( t ) {
5757
tape( 'if provided `NaN` for any parameter, the function returns `NaN`', opts, function test( t ) {
5858
var y = mgf( NaN, 10, 0.5 );
5959
t.equal( isnan( y ), true, 'returns NaN' );
60-
y = mgf( 4.0, NaN, 0.5 );
61-
t.equal( isnan( y ), true, 'returns NaN' );
6260
y = mgf( 4.0, 10, NaN );
6361
t.equal( isnan( y ), true, 'returns NaN' );
6462
t.end();
@@ -67,20 +65,14 @@ tape( 'if provided `NaN` for any parameter, the function returns `NaN`', opts, f
6765
tape( 'if provided an `n` which is not a nonnegative integer, the function returns `NaN`', opts, function test( t ) {
6866
var y;
6967

70-
y = mgf( 2.0, 1.5, 0.5 );
71-
t.equal( isnan( y ), true, 'returns NaN' );
7268

7369
y = mgf( 2.0, -2, 0.5 );
7470
t.equal( isnan( y ), true, 'returns NaN' );
7571

7672
y = mgf( 2.0, -1, 0.5 );
7773
t.equal( isnan( y ), true, 'returns NaN' );
7874

79-
y = mgf( 0.0, 2.5, 0.5 );
80-
t.equal( isnan( y ), true, 'returns NaN' );
8175

82-
y = mgf( 0.0, PINF, 0.5 );
83-
t.equal( isnan( y ), true, 'returns NaN' );
8476

8577
t.end();
8678
});

0 commit comments

Comments
 (0)