Skip to content

Commit c24ea87

Browse files
committed
test: add missing skips for native add-on tests
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 33ba5a0 commit c24ea87

File tree

3 files changed

+22
-13
lines changed

3 files changed

+22
-13
lines changed

lib/node_modules/@stdlib/stats/base/dists/poisson/kurtosis/test/test.native.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,26 @@ var data = require( './fixtures/julia/data.json' );
3535
// VARIABLES //
3636

3737
var kurtosis = tryRequire( resolve( __dirname, './../lib/native.js' ) );
38+
var opts = {
39+
'skip': ( kurtosis instanceof Error )
40+
};
3841

3942

4043
// TESTS //
4144

42-
tape( 'main export is a function', function test( t ) {
45+
tape( 'main export is a function', opts, function test( t ) {
4346
t.ok( true, __filename );
4447
t.strictEqual( typeof kurtosis, 'function', 'main export is a function' );
4548
t.end();
4649
});
4750

48-
tape( 'if provided `NaN` for `lambda`, the function returns `NaN`', function test( t ) {
51+
tape( 'if provided `NaN` for `lambda`, the function returns `NaN`', opts, function test( t ) {
4952
var v = kurtosis( NaN );
5053
t.equal( isnan( v ), true, 'returns NaN' );
5154
t.end();
5255
});
5356

54-
tape( 'if provided a mean parameter `lambda` that is not a positive number, the function returns `NaN`', function test( t ) {
57+
tape( 'if provided a mean parameter `lambda` that is not a positive number, the function returns `NaN`', opts, function test( t ) {
5558
var v;
5659

5760
v = kurtosis( -1.0 );
@@ -66,7 +69,7 @@ tape( 'if provided a mean parameter `lambda` that is not a positive number, the
6669
t.end();
6770
});
6871

69-
tape( 'the function returns the excess kurtosis of a Poisson distribution', function test( t ) {
72+
tape( 'the function returns the excess kurtosis of a Poisson distribution', opts, function test( t ) {
7073
var expected;
7174
var lambda;
7275
var i;

lib/node_modules/@stdlib/stats/base/dists/poisson/median/test/test.native.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,29 +35,32 @@ var data = require( './fixtures/julia/data.json' );
3535
// VARIABLES //
3636

3737
var median = tryRequire( resolve( __dirname, './../lib/native.js' ) );
38+
var opts = {
39+
'skip': ( median instanceof Error )
40+
};
3841

3942

4043
// TESTS //
4144

42-
tape( 'main export is a function', function test( t ) {
45+
tape( 'main export is a function', opts, function test( t ) {
4346
t.ok( true, __filename );
4447
t.strictEqual( typeof median, 'function', 'main export is a function' );
4548
t.end();
4649
});
4750

48-
tape( 'if provided `NaN` for `lambda`, the function returns `NaN`', function test( t ) {
51+
tape( 'if provided `NaN` for `lambda`, the function returns `NaN`', opts, function test( t ) {
4952
var v = median( NaN );
5053
t.equal( isnan( v ), true, 'returns NaN' );
5154
t.end();
5255
});
5356

54-
tape( 'if provided `0` for `lambda`, the function returns `0`', function test( t ) {
57+
tape( 'if provided `0` for `lambda`, the function returns `0`', opts, function test( t ) {
5558
var v = median( 0 );
5659
t.strictEqual( v, 0.0, 'returns 0' );
5760
t.end();
5861
});
5962

60-
tape( 'if provided a mean parameter `lambda` that is not a nonnegative number, the function returns `NaN`', function test( t ) {
63+
tape( 'if provided a mean parameter `lambda` that is not a nonnegative number, the function returns `NaN`', opts, function test( t ) {
6164
var v;
6265

6366
v = median( -1.0 );
@@ -69,7 +72,7 @@ tape( 'if provided a mean parameter `lambda` that is not a nonnegative number, t
6972
t.end();
7073
});
7174

72-
tape( 'the function returns the median of a Poisson distribution', function test( t ) {
75+
tape( 'the function returns the median of a Poisson distribution', opts, function test( t ) {
7376
var expected;
7477
var lambda;
7578
var i;

lib/node_modules/@stdlib/stats/base/dists/poisson/skewness/test/test.native.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,26 @@ var data = require( './fixtures/julia/data.json' );
3535
// VARIABLES //
3636

3737
var skewness = tryRequire( resolve( __dirname, './../lib/native.js' ) );
38+
var opts = {
39+
'skip': ( skewness instanceof Error )
40+
};
3841

3942

4043
// TESTS //
4144

42-
tape( 'main export is a function', function test( t ) {
45+
tape( 'main export is a function', opts, function test( t ) {
4346
t.ok( true, __filename );
4447
t.strictEqual( typeof skewness, 'function', 'main export is a function' );
4548
t.end();
4649
});
4750

48-
tape( 'if provided `NaN` for `lambda`, the function returns `NaN`', function test( t ) {
51+
tape( 'if provided `NaN` for `lambda`, the function returns `NaN`', opts, function test( t ) {
4952
var v = skewness( NaN );
5053
t.equal( isnan( v ), true, 'returns NaN' );
5154
t.end();
5255
});
5356

54-
tape( 'if provided a mean parameter `lambda` that is not a positive number, the function returns `NaN`', function test( t ) {
57+
tape( 'if provided a mean parameter `lambda` that is not a positive number, the function returns `NaN`', opts, function test( t ) {
5558
var v;
5659

5760
v = skewness( -1.0 );
@@ -66,7 +69,7 @@ tape( 'if provided a mean parameter `lambda` that is not a positive number, the
6669
t.end();
6770
});
6871

69-
tape( 'the function returns the skewness of a Poisson distribution', function test( t ) {
72+
tape( 'the function returns the skewness of a Poisson distribution', opts, function test( t ) {
7073
var expected;
7174
var lambda;
7275
var i;

0 commit comments

Comments
 (0)