Skip to content

Commit c83387a

Browse files
refactor: update benchmark check type
1 parent 4472c00 commit c83387a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/node_modules/@stdlib/array/fixed-endian-factory/benchmark/benchmark.sort.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
// MODULES //
2222

2323
var bench = require( '@stdlib/bench' );
24-
var isTypedArray = require( '@stdlib/assert/is-typed-array' );
2524
var pkg = require( './../package.json' ).name;
2625
var factory = require( './../lib' );
2726

@@ -48,7 +47,7 @@ bench( pkg+':sort', function benchmark( b ) {
4847
}
4948
}
5049
b.toc();
51-
if ( !isTypedArray( out ) ) {
50+
if ( !( out instanceof Float64ArrayFE ) ) {
5251
b.fail( 'should return a typed array' );
5352
}
5453
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/array/fixed-endian-factory/benchmark/benchmark.sort.length.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
var bench = require( '@stdlib/bench' );
2424
var pow = require( '@stdlib/math/base/special/pow' );
2525
var zeroTo = require( '@stdlib/array/zero-to' );
26-
var isTypedArray = require( '@stdlib/assert/is-typed-array' );
2726
var pkg = require( './../package.json' ).name;
2827
var factory = require( './../lib' );
2928

@@ -82,7 +81,7 @@ function createBenchmark( len ) {
8281
}
8382
}
8483
b.toc();
85-
if ( !isTypedArray( out ) ) {
84+
if ( !( out instanceof Float64ArrayFE ) ) {
8685
b.fail( 'should return a typed array' );
8786
}
8887
b.pass( 'benchmark finished' );

0 commit comments

Comments
 (0)