From 05ddabcf6fc92c819c473c78db075f8f2b6e9b64 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 21 Jun 2024 05:48:58 +0000 Subject: [PATCH] Auto-generated commit --- CHANGELOG.md | 1 + base/special/cosd/test/test.js | 6 ++++++ base/special/cosd/test/test.native.js | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 57185cc6a..f56912310 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4811,6 +4811,7 @@ A total of 29 people contributed to this release. Thank you to the following con
+- [`377403b`](https://github.com/stdlib-js/stdlib/commit/377403b1ecb696a54e038b8750efd09481fe3ba0) - **test:** add missing tests for `math/base/special/cosd` [(#2418)](https://github.com/stdlib-js/stdlib/pull/2418) _(by Gunj Joshi)_ - [`c88dbaa`](https://github.com/stdlib-js/stdlib/commit/c88dbaaf68dd67dc5bdd7bb71ef9ed4ad01ef42a) - **test:** add missing tests for `math/base/special/tand` [(#2417)](https://github.com/stdlib-js/stdlib/pull/2417) _(by Gunj Joshi)_ - [`a50d33d`](https://github.com/stdlib-js/stdlib/commit/a50d33db8b44799d80958be0403f1315389b9c7c) - **feat:** add C implementation for `math/base/special/haversin` [(##2408)](#2408) _(by Gunj Joshi)_ - [`1ea46e9`](https://github.com/stdlib-js/stdlib/commit/1ea46e990236941d977d6dc872ba0475eab366e8) - **docs:** use correct function name in example in `math/base/special/hacoversin` [(##2409)](#2409 ) _(by Gunj Joshi)_ diff --git a/base/special/cosd/test/test.js b/base/special/cosd/test/test.js index 65294b886..82ba8c87e 100644 --- a/base/special/cosd/test/test.js +++ b/base/special/cosd/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 = cosd( 90.0 ); + t.equal( v, 0.0, 'returns expected value' ); + t.end(); +}); diff --git a/base/special/cosd/test/test.native.js b/base/special/cosd/test/test.native.js index 8980c66e4..e205ac36a 100644 --- a/base/special/cosd/test/test.native.js +++ b/base/special/cosd/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 expected value' ); t.end(); }); + +tape( 'if provided `90.0`, the function returns `0.0`', opts, function test( t ) { + var v = cosd( 90.0 ); + t.equal( v, 0.0, 'returns expected value' ); + t.end(); +});