|
23 | 23 | // MODULES // |
24 | 24 |
|
25 | 25 | var bench = require( '@stdlib/bench' ); |
26 | | -var isNonNegativeIntegerArray = require( '@stdlib/assert/is-nonnegative-integer-array' ).primitives; |
| 26 | +var isArray = require( '@stdlib/assert/is-array' ); |
27 | 27 | var S = require( '@stdlib/slice/ctor' ); |
28 | 28 | var MultiSlice = require( '@stdlib/slice/multi' ); |
29 | 29 | var pkg = require( './../package.json' ).name; |
@@ -65,7 +65,7 @@ bench( pkg+'::ndims=1', function benchmark( b ) { |
65 | 65 | } |
66 | 66 | } |
67 | 67 | b.toc(); |
68 | | - if ( !isNonNegativeIntegerArray( out ) ) { |
| 68 | + if ( !isArray( out ) ) { |
69 | 69 | b.fail( 'should return an array' ); |
70 | 70 | } |
71 | 71 | b.pass( 'benchmark finished' ); |
@@ -105,7 +105,7 @@ bench( pkg+'::ndims=2', function benchmark( b ) { |
105 | 105 | } |
106 | 106 | } |
107 | 107 | b.toc(); |
108 | | - if ( !isNonNegativeIntegerArray( out ) ) { |
| 108 | + if ( !isArray( out ) ) { |
109 | 109 | b.fail( 'should return an array' ); |
110 | 110 | } |
111 | 111 | b.pass( 'benchmark finished' ); |
@@ -145,7 +145,7 @@ bench( pkg+'::ndims=3', function benchmark( b ) { |
145 | 145 | } |
146 | 146 | } |
147 | 147 | b.toc(); |
148 | | - if ( !isNonNegativeIntegerArray( out ) ) { |
| 148 | + if ( !isArray( out ) ) { |
149 | 149 | b.fail( 'should return an array' ); |
150 | 150 | } |
151 | 151 | b.pass( 'benchmark finished' ); |
@@ -185,7 +185,7 @@ bench( pkg+'::ndims=4', function benchmark( b ) { |
185 | 185 | } |
186 | 186 | } |
187 | 187 | b.toc(); |
188 | | - if ( !isNonNegativeIntegerArray( out ) ) { |
| 188 | + if ( !isArray( out ) ) { |
189 | 189 | b.fail( 'should return an array' ); |
190 | 190 | } |
191 | 191 | b.pass( 'benchmark finished' ); |
@@ -225,7 +225,7 @@ bench( pkg+'::ndims=5', function benchmark( b ) { |
225 | 225 | } |
226 | 226 | } |
227 | 227 | b.toc(); |
228 | | - if ( !isNonNegativeIntegerArray( out ) ) { |
| 228 | + if ( !isArray( out ) ) { |
229 | 229 | b.fail( 'should return an array' ); |
230 | 230 | } |
231 | 231 | b.pass( 'benchmark finished' ); |
|
0 commit comments