Skip to content

Commit 2c288dd

Browse files
headlessNodekgryte
andauthored
test: add tests to ndarray/base/count-if
PR-URL: stdlib-js#8318 Closes: stdlib-js/metr-issue-tracker#104 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent a2fd4d6 commit 2c288dd

File tree

13 files changed

+18652
-1
lines changed

13 files changed

+18652
-1
lines changed

lib/node_modules/@stdlib/ndarray/base/count-if/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function countIf( arrays, predicate, thisArg ) {
193193
}
194194
// Check whether we were provided an empty ndarray...
195195
if ( numel( shx ) === 0 ) {
196-
return true;
196+
return 0;
197197
}
198198
// Determine whether we can avoid blocked iteration...
199199
if ( ndims <= MAX_DIMS && iterationOrder( x.strides ) !== 0 ) {

0 commit comments

Comments
 (0)