diff --git a/lib/node_modules/@stdlib/math/base/special/sinh/test/test.js b/lib/node_modules/@stdlib/math/base/special/sinh/test/test.js index ac0a950fb12a..9792d792f499 100644 --- a/lib/node_modules/@stdlib/math/base/special/sinh/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/sinh/test/test.js @@ -49,6 +49,25 @@ tape( 'main export is a function', function test( t ) { t.end(); }); +tape( 'the function is an odd function', function test( t ) { + var x; + var i; + + x = [ + 1.0e-16, + 0.1, + 0.5, + 1.0, + 5.0, + 10.0 + ]; + + for ( i = 0; i < x.length; i++ ) { + t.strictEqual( sinh( -x[ i ] ), -sinh( x[ i ] ), 'returns -sinh(x) for x = ' + x[ i ] ); + } + t.end(); +}); + tape( 'the function computes the hyperbolic sine', function test( t ) { var expected; var delta;