@@ -53,35 +53,35 @@ tape( 'main export is a function', opts, function test( t ) {
53
53
54
54
tape ( 'if provided `NaN` for any parameter, the function returns `NaN`' , opts , function test ( t ) {
55
55
var y = median ( NaN , 1.0 ) ;
56
- t . equal ( isnan ( y ) , true , 'returns NaN ' ) ;
56
+ t . equal ( isnan ( y ) , true , 'returns expected value ' ) ;
57
57
y = median ( 1.0 , NaN ) ;
58
- t . equal ( isnan ( y ) , true , 'returns NaN ' ) ;
58
+ t . equal ( isnan ( y ) , true , 'returns expected value ' ) ;
59
59
t . end ( ) ;
60
60
} ) ;
61
61
62
62
tape ( 'if provided a nonpositive `c`, the function returns `NaN`' , opts , function test ( t ) {
63
63
var y ;
64
64
65
65
y = median ( 2.0 , 0.0 ) ;
66
- t . equal ( isnan ( y ) , true , 'returns NaN ' ) ;
66
+ t . equal ( isnan ( y ) , true , 'returns expected value ' ) ;
67
67
68
68
y = median ( 2.0 , - 1.0 ) ;
69
- t . equal ( isnan ( y ) , true , 'returns NaN ' ) ;
69
+ t . equal ( isnan ( y ) , true , 'returns expected value ' ) ;
70
70
71
71
y = median ( 2.0 , - 1.0 ) ;
72
- t . equal ( isnan ( y ) , true , 'returns NaN ' ) ;
72
+ t . equal ( isnan ( y ) , true , 'returns expected value ' ) ;
73
73
74
74
y = median ( 1.0 , NINF ) ;
75
- t . equal ( isnan ( y ) , true , 'returns NaN ' ) ;
75
+ t . equal ( isnan ( y ) , true , 'returns expected value ' ) ;
76
76
77
77
y = median ( PINF , NINF ) ;
78
- t . equal ( isnan ( y ) , true , 'returns NaN ' ) ;
78
+ t . equal ( isnan ( y ) , true , 'returns expected value ' ) ;
79
79
80
80
y = median ( NINF , NINF ) ;
81
- t . equal ( isnan ( y ) , true , 'returns NaN ' ) ;
81
+ t . equal ( isnan ( y ) , true , 'returns expected value ' ) ;
82
82
83
83
y = median ( NaN , NINF ) ;
84
- t . equal ( isnan ( y ) , true , 'returns NaN ' ) ;
84
+ t . equal ( isnan ( y ) , true , 'returns expected value ' ) ;
85
85
86
86
t . end ( ) ;
87
87
} ) ;
0 commit comments