Skip to content

Commit 73b048a

Browse files
committed
bench: fix assertions
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 1626ce4 commit 73b048a

File tree

1 file changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/array/base/zip2objects/benchmark

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/array/base/zip2objects/benchmark/benchmark.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var bench = require( '@stdlib/bench' );
24-
var isPlainObject = require( '@stdlib/assert/is-plain-object' );
24+
var isArray = require( '@stdlib/assert/is-array' );
2525
var zeroTo = require( '@stdlib/array/base/zero-to' );
2626
var pkg = require( './../package.json' ).name;
2727
var zip2objects = require( './../lib' );
@@ -42,12 +42,12 @@ bench( pkg+':len=100', function benchmark( b ) {
4242
for ( i = 0; i < b.iterations; i++ ) {
4343
v = zip2objects( [ x, x ], labels );
4444
if ( typeof v !== 'object' ) {
45-
b.fail( 'should return an object' );
45+
b.fail( 'should return an array' );
4646
}
4747
}
4848
b.toc();
49-
if ( !isPlainObject( v ) ) {
50-
b.fail( 'should return an object' );
49+
if ( !isArray( v ) ) {
50+
b.fail( 'should return an array' );
5151
}
5252
b.pass( 'benchmark finished' );
5353
b.end();

0 commit comments

Comments
 (0)