Skip to content

Commit

Permalink
test: add missing test for math/base/special/cotd
Browse files Browse the repository at this point in the history
PR-URL: #2449
Ref: c9ab1f2#commitcomment-143480610
Reviewed-by: Athan Reines <kgryte@gmail.com>
  • Loading branch information
gunjjoshi authored Jun 25, 2024
1 parent e87d921 commit 50d806d
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/cotd/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 = cotd( 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 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();
});

1 comment on commit 50d806d

@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/cotd $\color{green}190/190$
$\color{green}+100.00\%$
$\color{green}9/9$
$\color{green}+100.00\%$
$\color{green}2/2$
$\color{green}+100.00\%$
$\color{green}190/190$
$\color{green}+100.00\%$

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

Please sign in to comment.