File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/node_modules/@stdlib/array/base/zip2objects/benchmark Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 21
21
// MODULES //
22
22
23
23
var bench = require ( '@stdlib/bench' ) ;
24
- var isPlainObject = require ( '@stdlib/assert/is-plain-object ' ) ;
24
+ var isArray = require ( '@stdlib/assert/is-array ' ) ;
25
25
var zeroTo = require ( '@stdlib/array/base/zero-to' ) ;
26
26
var pkg = require ( './../package.json' ) . name ;
27
27
var zip2objects = require ( './../lib' ) ;
@@ -42,12 +42,12 @@ bench( pkg+':len=100', function benchmark( b ) {
42
42
for ( i = 0 ; i < b . iterations ; i ++ ) {
43
43
v = zip2objects ( [ x , x ] , labels ) ;
44
44
if ( typeof v !== 'object' ) {
45
- b . fail ( 'should return an object ' ) ;
45
+ b . fail ( 'should return an array ' ) ;
46
46
}
47
47
}
48
48
b . toc ( ) ;
49
- if ( ! isPlainObject ( v ) ) {
50
- b . fail ( 'should return an object ' ) ;
49
+ if ( ! isArray ( v ) ) {
50
+ b . fail ( 'should return an array ' ) ;
51
51
}
52
52
b . pass ( 'benchmark finished' ) ;
53
53
b . end ( ) ;
You can’t perform that action at this time.
0 commit comments