@@ -37,23 +37,26 @@ var data = require( './fixtures/julia/data.json' );
37
37
// VARIABLES //
38
38
39
39
var stdev = tryRequire ( resolve ( __dirname , './../lib/native.js' ) ) ;
40
+ var opts = {
41
+ 'skip' : ( stdev instanceof Error )
42
+ } ;
40
43
41
44
42
45
// TESTS //
43
46
44
- tape ( 'main export is a function' , function test ( t ) {
47
+ tape ( 'main export is a function' , opts , function test ( t ) {
45
48
t . ok ( true , __filename ) ;
46
49
t . strictEqual ( typeof stdev , 'function' , 'main export is a function' ) ;
47
50
t . end ( ) ;
48
51
} ) ;
49
52
50
- tape ( 'if provided `NaN` for `sigma`, the function returns `NaN`' , function test ( t ) {
53
+ tape ( 'if provided `NaN` for `sigma`, the function returns `NaN`' , opts , function test ( t ) {
51
54
var sigma = stdev ( NaN ) ;
52
55
t . equal ( isnan ( sigma ) , true , 'returns NaN' ) ;
53
56
t . end ( ) ;
54
57
} ) ;
55
58
56
- tape ( 'if provided a scale `sigma` that is not a nonnegative number, the function returns `NaN`' , function test ( t ) {
59
+ tape ( 'if provided a scale `sigma` that is not a nonnegative number, the function returns `NaN`' , opts , function test ( t ) {
57
60
var sigma ;
58
61
59
62
sigma = stdev ( - 1.0 ) ;
@@ -65,7 +68,7 @@ tape( 'if provided a scale `sigma` that is not a nonnegative number, the functio
65
68
t . end ( ) ;
66
69
} ) ;
67
70
68
- tape ( 'the function returns the standard deviation of a Rayleigh distribution' , function test ( t ) {
71
+ tape ( 'the function returns the standard deviation of a Rayleigh distribution' , opts , function test ( t ) {
69
72
var expected ;
70
73
var delta ;
71
74
var sigma ;
0 commit comments