Skip to content

Commit 377403b

Browse files
authored
test: add missing tests for math/base/special/cosd
PR-URL: #2418 Reviewed-by: Athan Reines <[email protected]>
1 parent c88dbaa commit 377403b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/node_modules/@stdlib/math/base/special/cosd/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 = cosd( 90.0 );
114+
t.equal( v, 0.0, 'returns expected value' );
115+
t.end();
116+
});

lib/node_modules/@stdlib/math/base/special/cosd/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 expected value' );
118118
t.end();
119119
});
120+
121+
tape( 'if provided `90.0`, the function returns `0.0`', opts, function test( t ) {
122+
var v = cosd( 90.0 );
123+
t.equal( v, 0.0, 'returns expected value' );
124+
t.end();
125+
});

0 commit comments

Comments
 (0)