Skip to content

Commit 1312fcf

Browse files
chore: minor clean up
1 parent 48cc51b commit 1312fcf

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

lib/node_modules/@stdlib/math/base/special/fibonaccif/benchmark/benchmark.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
var bench = require( '@stdlib/bench' );
2424
var randu = require( '@stdlib/random/base/randu' );
25+
var Int32Array = require( '@stdlib/array/int32' );
2526
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
2627
var floorf = require( '@stdlib/math/base/special/floorf' );
2728
var roundf = require( '@stdlib/math/base/special/roundf' );
@@ -143,7 +144,7 @@ bench( pkg+'::recursion_memoized', function benchmark( b ) {
143144
var y;
144145
var i;
145146

146-
arr = new Array( 37 );
147+
arr = new Int32Array( 37 );
147148
arr[ 0 ] = 0;
148149
arr[ 1 ] = 1;
149150
arr[ 2 ] = 1;
@@ -182,7 +183,7 @@ bench( pkg+'::naive_iterative', function benchmark( b ) {
182183
var arr;
183184
var i;
184185

185-
arr = new Array( n+1 );
186+
arr = new Int32Array( n+1 );
186187
arr[ 0 ] = 0;
187188
arr[ 1 ] = 1;
188189
arr[ 2 ] = 1;
@@ -252,7 +253,7 @@ bench( pkg+'::iterative_memoized', function benchmark( b ) {
252253
var y;
253254
var i;
254255

255-
arr = new Array( 37 );
256+
arr = new Int32Array( 37 );
256257
arr[ 0 ] = 0;
257258
arr[ 1 ] = 1;
258259
arr[ 2 ] = 1;
@@ -338,7 +339,7 @@ bench( pkg+'::iterative_doubling_memoized', function benchmark( b ) {
338339
var y;
339340
var i;
340341

341-
arr = new Array( 37 );
342+
arr = new Int32Array( 37 );
342343
arr[ 0 ] = 0;
343344
arr[ 1 ] = 1;
344345
arr[ 2 ] = 1;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ tape( 'the function returns the nth Fibonacci number', function test( t ) {
8080
t.end();
8181
});
8282

83-
tape( 'if provided nonnegative integers greater than `78`, the function returns `NaN`', function test( t ) {
83+
tape( 'if provided nonnegative integers greater than `36`, the function returns `NaN`', function test( t ) {
8484
var i;
8585
var v;
8686
for ( i = 37; i < 500; i++ ) {

0 commit comments

Comments
 (0)