Skip to content

Commit

Permalink
test: add missing tests for math/base/special/cosd
Browse files Browse the repository at this point in the history
PR-URL: #2418
Reviewed-by: Athan Reines <[email protected]>
  • Loading branch information
gunjjoshi authored Jun 21, 2024
1 parent c88dbaa commit 377403b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/node_modules/@stdlib/math/base/special/cosd/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

1 comment on commit 377403b

@stdlib-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Package Statements Branches Functions Lines
math/base/special/cosd $\color{green}179/179$
$\color{green}+100.00\%$
$\color{green}9/9$
$\color{green}+100.00\%$
$\color{green}2/2$
$\color{green}+100.00\%$
$\color{green}179/179$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this push.

Please sign in to comment.