From 98b84ed140971f35f028781625697bdaaf86ad36 Mon Sep 17 00:00:00 2001 From: GUNJ JOSHI Date: Tue, 25 Jun 2024 14:28:08 +0530 Subject: [PATCH] test: add missing test for math/base/special/cotd --- .../@stdlib/math/base/special/cotd/test/test.js | 6 ++++++ .../@stdlib/math/base/special/cotd/test/test.native.js | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/lib/node_modules/@stdlib/math/base/special/cotd/test/test.js b/lib/node_modules/@stdlib/math/base/special/cotd/test/test.js index 41114eb39dce..9a33508e33fa 100644 --- a/lib/node_modules/@stdlib/math/base/special/cotd/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/cotd/test/test.js @@ -108,3 +108,9 @@ tape( 'if provided `-infinity`, the function returns `NaN`', function test( t ) t.equal( isnan( v ), true, 'returns NaN' ); t.end(); }); + +tape( 'if provided `90.0`, the function returns `0.0`', function test( t ) { + var v = cotd( 90.0 ); + t.equal( v, 0.0, 'returns expected value' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/cotd/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/cotd/test/test.native.js index 0ac10baf6128..681914b46803 100644 --- a/lib/node_modules/@stdlib/math/base/special/cotd/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/cotd/test/test.native.js @@ -117,3 +117,9 @@ tape( 'if provided `-infinity`, the function returns `NaN`', opts, function test t.equal( isnan( v ), true, 'returns NaN' ); t.end(); }); + +tape( 'if provided `90.0`, the function returns `0.0`', opts, function test( t ) { + var v = cotd( 90.0 ); + t.equal( v, 0.0, 'returns expected value' ); + t.end(); +});