Skip to content

Commit 1f2e6a0

Browse files
committed
Fix: Added missing opts argument in MGF test cases
1 parent e58756c commit 1f2e6a0

File tree

1 file changed

+18
-0
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/triangular/mgf/test

1 file changed

+18
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,24 @@ tape( 'if provided parameters not satisfying `a <= c <= b`, the function returns
8181
t.end();
8282
});
8383

84+
tape( 'if provided `0` for `t` and valid `a`, `b` and `c`, the function returns `1`',opts, function test( t ) {
85+
var y;
86+
87+
y = mgf( 0.0, -1.0, -1.0, -1.0 );
88+
t.equal( y, 1.0, 'returns expected value' );
89+
90+
y = mgf( 0.0, 0.0, 1.0, 0.5 );
91+
t.equal( y, 1.0, 'returns expected value' );
92+
93+
y = mgf( 0.0, 0.0, 1.0, 1.0 );
94+
t.equal( y, 1.0, 'returns expected value' );
95+
96+
y = mgf( 0.0, 1.0, 1.0, 1.0 );
97+
t.equal( y, 1.0, 'returns expected value' );
98+
99+
t.end();
100+
});
101+
84102
tape( 'the function evaluates the MGF for `x` given a small range `b - a`', opts, function test( t ) {
85103
var expected;
86104
var delta;

0 commit comments

Comments
 (0)