@@ -377,29 +377,41 @@ tape( 'the function computes the cosecant (tiny negative values)', opts, functio
377377} ) ;
378378
379379tape ( 'if provided a multiple of `-pi`, the function does not return `~+infinity` due to floating-point rounding errors' , opts , function test ( t ) {
380- t . notEqual ( csc ( - PI ) , PINF , 'returns expected value' ) ;
380+ t . notEqual ( csc ( - PI ) , PINF , 'returns expected value' ) ;
381381 t . end ( ) ;
382382} ) ;
383383
384384tape ( 'if provided a multiple of `pi`, the function does not return `~-infinity`' , opts , function test ( t ) {
385- t . notEqual ( csc ( PI ) , NINF , 'returns expected value' ) ;
385+ t . notEqual ( csc ( PI ) , NINF , 'returns expected value' ) ;
386386 t . end ( ) ;
387387} ) ;
388388
389- tape ( 'if provided a `NaN`, the function returns `expected value `' , opts , function test ( t ) {
390- var v = csc ( NaN ) ;
391- t . strictEqual ( isnan ( v ) , true , 'returns expected value' ) ;
389+ tape ( 'if provided a `NaN`, the function returns `NaN `' , opts , function test ( t ) {
390+ var v = csc ( NaN ) ;
391+ t . strictEqual ( isnan ( v ) , true , 'returns expected value' ) ;
392392 t . end ( ) ;
393393} ) ;
394394
395- tape ( 'if provided `+infinity`, the function returns `expected value `' , opts , function test ( t ) {
396- var v = csc ( PINF ) ;
397- t . strictEqual ( isnan ( v ) , true , 'returns expected value' ) ;
395+ tape ( 'if provided `+infinity`, the function returns `NaN `' , opts , function test ( t ) {
396+ var v = csc ( PINF ) ;
397+ t . strictEqual ( isnan ( v ) , true , 'returns expected value' ) ;
398398 t . end ( ) ;
399399} ) ;
400400
401- tape ( 'if provided `-infinity`, the function returns `expected value`' , opts , function test ( t ) {
402- var v = csc ( NINF ) ;
403- t . strictEqual ( isnan ( v ) , true , 'returns expected value' ) ;
401+ tape ( 'if provided `-infinity`, the function returns `NaN`' , opts , function test ( t ) {
402+ var v = csc ( NINF ) ;
403+ t . strictEqual ( isnan ( v ) , true , 'returns expected value' ) ;
404+ t . end ( ) ;
405+ } ) ;
406+
407+ tape ( 'if provided `+0`, the function returns `+infinity`' , opts , function test ( t ) {
408+ var v = csc ( 0.0 ) ;
409+ t . strictEqual ( v , PINF , 'returns expected value' ) ;
410+ t . end ( ) ;
411+ } ) ;
412+
413+ tape ( 'if provided `-0`, the function returns `-infinity`' , opts , function test ( t ) {
414+ var v = csc ( - 0.0 ) ;
415+ t . strictEqual ( v , NINF , 'returns expected value' ) ;
404416 t . end ( ) ;
405417} ) ;
0 commit comments