Skip to content

Commit 50d806d

Browse files
authored
test: add missing test for math/base/special/cotd
PR-URL: #2449 Ref: c9ab1f2#commitcomment-143480610 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent e87d921 commit 50d806d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/node_modules/@stdlib/math/base/special/cotd/test/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,9 @@ tape( 'if provided `-infinity`, the function returns `NaN`', function test( t )
108108
t.equal( isnan( v ), true, 'returns NaN' );
109109
t.end();
110110
});
111+
112+
tape( 'if provided `90.0`, the function returns `0.0`', function test( t ) {
113+
var v = cotd( 90.0 );
114+
t.equal( v, 0.0, 'returns expected value' );
115+
t.end();
116+
});

lib/node_modules/@stdlib/math/base/special/cotd/test/test.native.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,9 @@ tape( 'if provided `-infinity`, the function returns `NaN`', opts, function test
117117
t.equal( isnan( v ), true, 'returns NaN' );
118118
t.end();
119119
});
120+
121+
tape( 'if provided `90.0`, the function returns `0.0`', opts, function test( t ) {
122+
var v = cotd( 90.0 );
123+
t.equal( v, 0.0, 'returns expected value' );
124+
t.end();
125+
});

0 commit comments

Comments
 (0)