diff --git a/lib/node_modules/@stdlib/math/base/special/fibonacci/index.bat b/lib/node_modules/@stdlib/math/base/special/fibonacci/index.bat new file mode 100644 index 000000000000..4d6a3b44f49d --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/fibonacci/index.bat @@ -0,0 +1 @@ +ECHO is on. diff --git a/lib/node_modules/@stdlib/math/base/special/fibonacci/package.bat b/lib/node_modules/@stdlib/math/base/special/fibonacci/package.bat new file mode 100644 index 000000000000..4d6a3b44f49d --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/fibonacci/package.bat @@ -0,0 +1 @@ +ECHO is on. diff --git a/lib/node_modules/@stdlib/math/base/special/fibonacci/package.json b/lib/node_modules/@stdlib/math/base/special/fibonacci/package.json deleted file mode 100644 index a485d8b82c4a..000000000000 --- a/lib/node_modules/@stdlib/math/base/special/fibonacci/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "name": "@stdlib/math/base/special/fibonacci", - "version": "0.0.0", - "description": "Compute the nth Fibonacci number.", - "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "gypfile": true, - "directories": { - "benchmark": "./benchmark", - "doc": "./docs", - "example": "./examples", - "include": "./include", - "lib": "./lib", - "src": "./src", - "test": "./test" - }, - "types": "./docs/types", - "scripts": {}, - "homepage": "https://github.com/stdlib-js/stdlib", - "repository": { - "type": "git", - "url": "git://github.com/stdlib-js/stdlib.git" - }, - "bugs": { - "url": "https://github.com/stdlib-js/stdlib/issues" - }, - "dependencies": {}, - "devDependencies": {}, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], - "keywords": [ - "stdlib", - "stdmath", - "mathematics", - "math", - "special functions", - "special", - "function", - "fibonacci", - "fib", - "number" - ] -} diff --git a/lib/node_modules/@stdlib/math/base/special/fibonacci/test/test.bat b/lib/node_modules/@stdlib/math/base/special/fibonacci/test/test.bat new file mode 100644 index 000000000000..4d6a3b44f49d --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/fibonacci/test/test.bat @@ -0,0 +1 @@ +ECHO is on. diff --git a/lib/node_modules/@stdlib/math/base/special/fibonacci/test/test.js b/lib/node_modules/@stdlib/math/base/special/fibonacci/test/test.js deleted file mode 100644 index fe482023b1bd..000000000000 --- a/lib/node_modules/@stdlib/math/base/special/fibonacci/test/test.js +++ /dev/null @@ -1,91 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var isnan = require( '@stdlib/math/base/assert/is-nan' ); -var PINF = require( '@stdlib/constants/float64/pinf' ); -var fibonacci = require( './../lib' ); - - -// FIXTURES // - -var FIBONACCI = require( './../lib/fibonacci.json' ); - - -// TESTS // - -tape( 'main export is a function', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof fibonacci, 'function', 'main export is a function' ); - t.end(); -}); - -tape( 'if provided a negative number, the function returns `NaN`', function test( t ) { - var v; - var i; - - t.strictEqual( isnan( fibonacci( -3.14 ) ), true, 'returns expected value' ); - - for ( i = -1; i > -100; i-- ) { - v = fibonacci( i ); - t.strictEqual( isnan( v ), true, 'returns expected value when provided ' + i ); - } - t.end(); -}); - -tape( 'if provided positive infinity, the function returns `NaN`', function test( t ) { - var v = fibonacci( PINF ); - t.strictEqual( isnan( v ), true, 'returns expected value' ); - t.end(); -}); - -tape( 'if provided `NaN`, the function returns `NaN`', function test( t ) { - var v = fibonacci( NaN ); - t.strictEqual( isnan( v ), true, 'returns expected value' ); - t.end(); -}); - -tape( 'if provided a non-integer, the function returns `NaN`', function test( t ) { - var v = fibonacci( 3.14 ); - t.strictEqual( isnan( v ), true, 'returns expected value' ); - t.end(); -}); - -tape( 'the function returns the nth Fibonacci number', function test( t ) { - var v; - var i; - for ( i = 0; i < 79; i++ ) { - v = fibonacci( i ); - t.strictEqual( v, FIBONACCI[ i ], 'returns the '+i+'th Fibonacci number' ); - } - t.end(); -}); - -tape( 'if provided nonnegative integers greater than `78`, the function returns `NaN`', function test( t ) { - var i; - var v; - for ( i = 79; i < 500; i++ ) { - v = fibonacci( i ); - t.strictEqual( isnan( v ), true, 'returns expected value when provided ' + i ); - } - t.end(); -});