@@ -70,7 +70,7 @@ tape( 'the function evaluates the cubic root of `x` on the interval `[-50,-500]'
7070 for ( i = 0 ; i < x . length ; i ++ ) {
7171 y = cbrt ( x [ i ] ) ;
7272 if ( y === expected [ i ] ) {
73- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
73+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
7474 } else {
7575 delta = abs ( y - expected [ i ] ) ;
7676 tol = EPS * abs ( expected [ i ] ) ;
@@ -93,7 +93,7 @@ tape( 'the function evaluates the cubic root of `x` on the interval `[50,500]`',
9393 for ( i = 0 ; i < x . length ; i ++ ) {
9494 y = cbrt ( x [ i ] ) ;
9595 if ( y === expected [ i ] ) {
96- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
96+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
9797 } else {
9898 delta = abs ( y - expected [ i ] ) ;
9999 tol = EPS * abs ( expected [ i ] ) ;
@@ -116,7 +116,7 @@ tape( 'the function evaluates the cubic root of `x` on the interval `[-20,-50]`'
116116 for ( i = 0 ; i < x . length ; i ++ ) {
117117 y = cbrt ( x [ i ] ) ;
118118 if ( y === expected [ i ] ) {
119- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
119+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
120120 } else {
121121 delta = abs ( y - expected [ i ] ) ;
122122 tol = EPS * abs ( expected [ i ] ) ;
@@ -139,7 +139,7 @@ tape( 'the function evaluates the cubic root of `x` on the interval `[20,50]`',
139139 for ( i = 0 ; i < x . length ; i ++ ) {
140140 y = cbrt ( x [ i ] ) ;
141141 if ( y === expected [ i ] ) {
142- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
142+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
143143 } else {
144144 delta = abs ( y - expected [ i ] ) ;
145145 tol = EPS * abs ( expected [ i ] ) ;
@@ -162,7 +162,7 @@ tape( 'the function evaluates the cubic root of `x` on the interval `[-20,-3]`',
162162 for ( i = 0 ; i < x . length ; i ++ ) {
163163 y = cbrt ( x [ i ] ) ;
164164 if ( y === expected [ i ] ) {
165- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
165+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
166166 } else {
167167 delta = abs ( y - expected [ i ] ) ;
168168 tol = EPS * abs ( expected [ i ] ) ;
@@ -185,7 +185,7 @@ tape( 'the function evaluates the cubic root of `x` on the interval `[3,20]`', f
185185 for ( i = 0 ; i < x . length ; i ++ ) {
186186 y = cbrt ( x [ i ] ) ;
187187 if ( y === expected [ i ] ) {
188- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
188+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
189189 } else {
190190 delta = abs ( y - expected [ i ] ) ;
191191 tol = EPS * abs ( expected [ i ] ) ;
@@ -208,7 +208,7 @@ tape( 'the function evaluates the cubic root of `x` on the interval `[-3,-0.8]`'
208208 for ( i = 0 ; i < x . length ; i ++ ) {
209209 y = cbrt ( x [ i ] ) ;
210210 if ( y === expected [ i ] ) {
211- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
211+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
212212 } else {
213213 delta = abs ( y - expected [ i ] ) ;
214214 tol = EPS * abs ( expected [ i ] ) ;
@@ -231,7 +231,7 @@ tape( 'the function evaluates the cubic root of `x` on the interval `[0.8,3]`',
231231 for ( i = 0 ; i < x . length ; i ++ ) {
232232 y = cbrt ( x [ i ] ) ;
233233 if ( y === expected [ i ] ) {
234- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
234+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
235235 } else {
236236 delta = abs ( y - expected [ i ] ) ;
237237 tol = EPS * abs ( expected [ i ] ) ;
@@ -254,7 +254,7 @@ tape( 'the function evaluates cubic root of `x` on the interval `[-0.8,0.8]`', f
254254 for ( i = 0 ; i < x . length ; i ++ ) {
255255 y = cbrt ( x [ i ] ) ;
256256 if ( y === expected [ i ] ) {
257- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
257+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
258258 } else {
259259 delta = abs ( y - expected [ i ] ) ;
260260 tol = EPS * abs ( expected [ i ] ) ;
@@ -277,7 +277,7 @@ tape( 'the function evaluates the cubic root of `x` on the interval `[-1e-300,-1
277277 for ( i = 0 ; i < x . length ; i ++ ) {
278278 y = cbrt ( x [ i ] ) ;
279279 if ( y === expected [ i ] ) {
280- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
280+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
281281 } else {
282282 delta = abs ( y - expected [ i ] ) ;
283283 tol = EPS * abs ( expected [ i ] ) ;
@@ -300,7 +300,7 @@ tape( 'the function evaluates the cubic root of `x` on the interval `[1e-300,1e-
300300 for ( i = 0 ; i < x . length ; i ++ ) {
301301 y = cbrt ( x [ i ] ) ;
302302 if ( y === expected [ i ] ) {
303- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
303+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
304304 } else {
305305 delta = abs ( y - expected [ i ] ) ;
306306 tol = EPS * abs ( expected [ i ] ) ;
@@ -323,7 +323,7 @@ tape( 'the function evaluates the cubic root of subnormal `x`', function test( t
323323 for ( i = 0 ; i < x . length ; i ++ ) {
324324 y = cbrt ( x [ i ] ) ;
325325 if ( y === expected [ i ] ) {
326- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
326+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
327327 } else {
328328 delta = abs ( y - expected [ i ] ) ;
329329 tol = EPS * abs ( expected [ i ] ) ;
@@ -347,7 +347,7 @@ tape( 'the function evaluates the cubic root of `x` (huge negative)', function t
347347 for ( i = 0 ; i < x . length ; i ++ ) {
348348 y = cbrt ( x [ i ] ) ;
349349 if ( y === expected [ i ] ) {
350- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
350+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
351351 } else {
352352 delta = abs ( y - expected [ i ] ) ;
353353 tol = EPS * abs ( expected [ i ] ) ;
@@ -371,7 +371,7 @@ tape( 'the function evaluates the cubic root of `x` (huge positive)', function t
371371 for ( i = 0 ; i < x . length ; i ++ ) {
372372 y = cbrt ( x [ i ] ) ;
373373 if ( y === expected [ i ] ) {
374- t . equal ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
374+ t . strictEqual ( y , expected [ i ] , 'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ] ) ;
375375 } else {
376376 delta = abs ( y - expected [ i ] ) ;
377377 tol = EPS * abs ( expected [ i ] ) ;
@@ -383,30 +383,30 @@ tape( 'the function evaluates the cubic root of `x` (huge positive)', function t
383383
384384tape ( 'the function returns `NaN` if provided `NaN`' , function test ( t ) {
385385 var v = cbrt ( NaN ) ;
386- t . equal ( isnan ( v ) , true , 'returns expected value' ) ;
386+ t . strictEqual ( isnan ( v ) , true , 'returns expected value' ) ;
387387 t . end ( ) ;
388388} ) ;
389389
390390tape ( 'the function returns `-infinity` if provided `-infinity`' , function test ( t ) {
391391 var v = cbrt ( NINF ) ;
392- t . equal ( v , NINF , 'returns expected value' ) ;
392+ t . strictEqual ( v , NINF , 'returns expected value' ) ;
393393 t . end ( ) ;
394394} ) ;
395395
396396tape ( 'the function returns `+infinity` if provided `+infinity`' , function test ( t ) {
397397 var v = cbrt ( PINF ) ;
398- t . equal ( v , PINF , 'returns expected value' ) ;
398+ t . strictEqual ( v , PINF , 'returns expected value' ) ;
399399 t . end ( ) ;
400400} ) ;
401401
402402tape ( 'the function returns `+0` if provided `+0`' , function test ( t ) {
403403 var v = cbrt ( + 0.0 ) ;
404- t . equal ( isPositiveZero ( v ) , true , 'returns expected value' ) ;
404+ t . strictEqual ( isPositiveZero ( v ) , true , 'returns expected value' ) ;
405405 t . end ( ) ;
406406} ) ;
407407
408408tape ( 'the function returns `-0` if provided `-0`' , function test ( t ) {
409409 var v = cbrt ( - 0.0 ) ;
410- t . equal ( isNegativeZero ( v ) , true , 'returns expected value' ) ;
410+ t . strictEqual ( isNegativeZero ( v ) , true , 'returns expected value' ) ;
411411 t . end ( ) ;
412412} ) ;
0 commit comments