Skip to content

Commit d32732a

Browse files
Planeshifterkgryte
andauthored
bench: fix assertion
PR-URL: #13391 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com> Signed-off-by: Athan Reines <kgryte@gmail.com>
1 parent 945328a commit d32732a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/index-modes/benchmark

lib/node_modules/@stdlib/ndarray/index-modes/benchmark/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ bench( pkg, function benchmark( b ) {
3535
b.tic();
3636
for ( i = 0; i < b.iterations; i++ ) {
3737
out = modes();
38-
if ( out.length !== 3 ) {
39-
b.fail( 'should return an array of length 3' );
38+
if ( out.length < 2 ) {
39+
b.fail( 'should return an array of strings' );
4040
}
4141
}
4242
b.toc();

0 commit comments

Comments
 (0)