Skip to content

Commit 043fa6d

Browse files
committed
bench: fix assertion
1 parent 87baa70 commit 043fa6d

File tree

1 file changed

+6
-6
lines changed
  • lib/node_modules/@stdlib/slice/base/nonreduced-dimensions/benchmark

1 file changed

+6
-6
lines changed

lib/node_modules/@stdlib/slice/base/nonreduced-dimensions/benchmark/benchmark.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
// MODULES //
2424

2525
var bench = require( '@stdlib/bench' );
26-
var isNonNegativeIntegerArray = require( '@stdlib/assert/is-nonnegative-integer-array' ).primitives;
26+
var isArray = require( '@stdlib/assert/is-array' );
2727
var S = require( '@stdlib/slice/ctor' );
2828
var MultiSlice = require( '@stdlib/slice/multi' );
2929
var pkg = require( './../package.json' ).name;
@@ -65,7 +65,7 @@ bench( pkg+'::ndims=1', function benchmark( b ) {
6565
}
6666
}
6767
b.toc();
68-
if ( !isNonNegativeIntegerArray( out ) ) {
68+
if ( !isArray( out ) ) {
6969
b.fail( 'should return an array' );
7070
}
7171
b.pass( 'benchmark finished' );
@@ -105,7 +105,7 @@ bench( pkg+'::ndims=2', function benchmark( b ) {
105105
}
106106
}
107107
b.toc();
108-
if ( !isNonNegativeIntegerArray( out ) ) {
108+
if ( !isArray( out ) ) {
109109
b.fail( 'should return an array' );
110110
}
111111
b.pass( 'benchmark finished' );
@@ -145,7 +145,7 @@ bench( pkg+'::ndims=3', function benchmark( b ) {
145145
}
146146
}
147147
b.toc();
148-
if ( !isNonNegativeIntegerArray( out ) ) {
148+
if ( !isArray( out ) ) {
149149
b.fail( 'should return an array' );
150150
}
151151
b.pass( 'benchmark finished' );
@@ -185,7 +185,7 @@ bench( pkg+'::ndims=4', function benchmark( b ) {
185185
}
186186
}
187187
b.toc();
188-
if ( !isNonNegativeIntegerArray( out ) ) {
188+
if ( !isArray( out ) ) {
189189
b.fail( 'should return an array' );
190190
}
191191
b.pass( 'benchmark finished' );
@@ -225,7 +225,7 @@ bench( pkg+'::ndims=5', function benchmark( b ) {
225225
}
226226
}
227227
b.toc();
228-
if ( !isNonNegativeIntegerArray( out ) ) {
228+
if ( !isArray( out ) ) {
229229
b.fail( 'should return an array' );
230230
}
231231
b.pass( 'benchmark finished' );

0 commit comments

Comments
 (0)