Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions etc/eslint/.eslintrc.markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@

// MODULES //

// FIXME: remove the next line and uncomment the subsequent line once all remark JSDoc ESLint rules are completed
var copy = require( './../../lib/node_modules/@stdlib/utils/copy' );

// Var copy = require( './utils/copy.js' );
// FIXME: update the next line once all remark JSDoc ESLint rules are completed

Check warning on line 23 in etc/eslint/.eslintrc.markdown.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected 'fixme' comment: 'FIXME: update the next line once all...'
var copy = require( './../../lib/node_modules/@stdlib/utils/copy' ); // var copy = require( './utils/copy.js' );
var defaults = require( './.eslintrc.js' );


Expand Down Expand Up @@ -123,8 +121,13 @@
*
* @private
*/
eslint.rules[ 'stdlib/jsdoc-return-annotations-values' ] = 'off'; // FIXME: remove this once we can reliably lint Markdown code blocks

Check warning on line 124 in etc/eslint/.eslintrc.markdown.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected 'fixme' comment: 'FIXME: remove this once we can reliably...'

/**
* Do not enforce disallowing empty lines between module-level require statements.
*/
eslint.rules[ 'stdlib/no-empty-lines-between-requires' ] = 'off';

/**
* Allow use of undeclared variables, as variables may be defined in previous code blocks or be implied.
*
Expand Down
13 changes: 13 additions & 0 deletions lib/node_modules/@stdlib/math/base/special/cosm1/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,19 @@ tape( 'main export is a function', function test( t ) {
t.end();
});

tape( 'the function returns positive zero for zero and negative zero', function test( t ) {
var v1 = cosm1( 0.0 );
var v2 = cosm1( -0.0 );

t.strictEqual( v1, 0.0, 'returns +0 for +0' );
t.strictEqual( 1.0/v1, PINF, 'returns +0 (not -0)' );

t.strictEqual( v2, 0.0, 'returns +0 for -0' );
t.strictEqual( 1.0/v2, PINF, 'returns +0 (not -0)' );

t.end();
});

tape( 'the function computes the cosine minus one more accurately inside the interval [-π/4,π/4]', function test( t ) {
var expected;
var x;
Expand Down