@@ -106,26 +106,26 @@ tape( 'the function computes the hyperbolic arctangent (positive values)', opts,
106
106
tape ( 'the function underflows if provided a value negligible compared to unity (negative)' , opts , function test ( t ) {
107
107
var x = - EPS / 10.0 ;
108
108
var v = atanh ( x ) ;
109
- t . strictEqual ( isPositiveZero ( v ) , true , 'returns 0 ' ) ;
109
+ t . strictEqual ( isPositiveZero ( v ) , true , 'returns expected value ' ) ;
110
110
t . end ( ) ;
111
111
} ) ;
112
112
113
113
tape ( 'the function underflows if provided a value negligible compared to unity (positive)' , opts , function test ( t ) {
114
114
var x = EPS / 10.0 ;
115
115
var v = atanh ( x ) ;
116
- t . strictEqual ( isPositiveZero ( v ) , true , 'returns 0 ' ) ;
116
+ t . strictEqual ( isPositiveZero ( v ) , true , 'returns expected value ' ) ;
117
117
t . end ( ) ;
118
118
} ) ;
119
119
120
120
tape ( 'the function returns `+Infinity` if provided `1.0`' , opts , function test ( t ) {
121
121
var v = atanh ( 1.0 ) ;
122
- t . strictEqual ( v , PINF , 'returns +Infinity ' ) ;
122
+ t . strictEqual ( v , PINF , 'returns expected value ' ) ;
123
123
t . end ( ) ;
124
124
} ) ;
125
125
126
126
tape ( 'the function returns `-Infinity` if provided `-1.0`' , opts , function test ( t ) {
127
127
var v = atanh ( - 1.0 ) ;
128
- t . strictEqual ( v , NINF , 'returns -Infinity ' ) ;
128
+ t . strictEqual ( v , NINF , 'returns expected value ' ) ;
129
129
t . end ( ) ;
130
130
} ) ;
131
131
@@ -135,7 +135,7 @@ tape( 'the function returns `NaN` if provided a value less than `-1`', opts, fun
135
135
136
136
for ( i = 0 ; i < 1e3 ; i ++ ) {
137
137
v = - ( randu ( ) * 1.0e6 ) - ( 1.0 + EPS ) ;
138
- t . strictEqual ( isnan ( atanh ( v ) ) , true , 'returns NaN when provided ' + v ) ;
138
+ t . strictEqual ( isnan ( atanh ( v ) ) , true , 'returns expected value when provided ' + v ) ;
139
139
}
140
140
t . end ( ) ;
141
141
} ) ;
@@ -146,25 +146,25 @@ tape( 'the function returns `NaN` if provided a value greater than `1`', opts, f
146
146
147
147
for ( i = 0 ; i < 1e3 ; i ++ ) {
148
148
v = ( randu ( ) * 1.0e6 ) + 1.0 + EPS ;
149
- t . strictEqual ( isnan ( atanh ( v ) ) , true , 'returns NaN when provided ' + v ) ;
149
+ t . strictEqual ( isnan ( atanh ( v ) ) , true , 'returns expected value when provided ' + v ) ;
150
150
}
151
151
t . end ( ) ;
152
152
} ) ;
153
153
154
154
tape ( 'the function returns `-0` if provided `-0`' , opts , function test ( t ) {
155
155
var v = atanh ( - 0.0 ) ;
156
- t . strictEqual ( isNegativeZero ( v ) , true , 'returns -0 ' ) ;
156
+ t . strictEqual ( isNegativeZero ( v ) , true , 'returns expected value ' ) ;
157
157
t . end ( ) ;
158
158
} ) ;
159
159
160
160
tape ( 'the function returns `+0` if provided `+0`' , opts , function test ( t ) {
161
161
var v = atanh ( 0.0 ) ;
162
- t . strictEqual ( isPositiveZero ( v ) , true , 'returns 0 ' ) ;
162
+ t . strictEqual ( isPositiveZero ( v ) , true , 'returns expected value ' ) ;
163
163
t . end ( ) ;
164
164
} ) ;
165
165
166
166
tape ( 'the function returns `NaN` if provided `NaN`' , opts , function test ( t ) {
167
167
var v = atanh ( NaN ) ;
168
- t . strictEqual ( isnan ( v ) , true , 'returns NaN ' ) ;
168
+ t . strictEqual ( isnan ( v ) , true , 'returns expected value ' ) ;
169
169
t . end ( ) ;
170
170
} ) ;
0 commit comments