Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Feb 7, 2024
1 parent afe192a commit bf8bb2d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions base/assert/is-data-type/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
// MODULES //

var bench = require( '@stdlib/bench' );
var randu = require( '@stdlib/random/base/randu' );
var floor = require( '@stdlib/math/base/special/floor' );
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
var pkg = require( './../package.json' ).name;
var isDataType = require( './../lib' );
Expand Down Expand Up @@ -57,7 +55,7 @@ bench( pkg, function benchmark( b ) {

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
v = values[ floor( randu()*values.length ) ];
v = values[ i%values.length ];
out = isDataType( v );
if ( typeof out !== 'boolean' ) {
b.fail( 'should return a boolean' );
Expand Down

0 comments on commit bf8bb2d

Please sign in to comment.