Skip to content

feat: add missing tests to ndarray/base/includes #7304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Jun 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/node_modules/@stdlib/ndarray/base/includes/lib/main.js
Original file line number Diff line number Diff line change
@@ -268,7 +268,7 @@
if ( !isComplexLike( value ) ) {
return false;
}
// TODO: consider adding something like `complex/base/complex2object` where we normalize a user-provided complex-like object to a standardized object shape

Check warning on line 271 in lib/node_modules/@stdlib/ndarray/base/includes/lib/main.js

GitHub Actions / Lint Changed Files

Unexpected 'todo' comment: 'TODO: consider adding something like...'
value = {
're': real( value ),
'im': imag( value )
@@ -305,7 +305,8 @@
}
// Check whether we were provided an empty ndarray...
if ( len === 0 ) {
return true;
// An empty array is a trivial case in which an array does not contain a search element:
return false;
}
// Determine whether the ndarray is one-dimensional and thus readily translates to a one-dimensional strided array...
if ( ndims === 1 ) {
3,436 changes: 3,436 additions & 0 deletions lib/node_modules/@stdlib/ndarray/base/includes/test/test.10d.js

Large diffs are not rendered by default.

104 changes: 104 additions & 0 deletions lib/node_modules/@stdlib/ndarray/base/includes/test/test.1d.js
1,423 changes: 1,423 additions & 0 deletions lib/node_modules/@stdlib/ndarray/base/includes/test/test.2d.js

Large diffs are not rendered by default.

1,643 changes: 1,643 additions & 0 deletions lib/node_modules/@stdlib/ndarray/base/includes/test/test.3d.js

Large diffs are not rendered by default.

1,863 changes: 1,863 additions & 0 deletions lib/node_modules/@stdlib/ndarray/base/includes/test/test.4d.js

Large diffs are not rendered by default.

2,083 changes: 2,083 additions & 0 deletions lib/node_modules/@stdlib/ndarray/base/includes/test/test.5d.js

Large diffs are not rendered by default.

2,303 changes: 2,303 additions & 0 deletions lib/node_modules/@stdlib/ndarray/base/includes/test/test.6d.js

Large diffs are not rendered by default.

2,523 changes: 2,523 additions & 0 deletions lib/node_modules/@stdlib/ndarray/base/includes/test/test.7d.js

Large diffs are not rendered by default.

2,743 changes: 2,743 additions & 0 deletions lib/node_modules/@stdlib/ndarray/base/includes/test/test.8d.js

Large diffs are not rendered by default.

3,103 changes: 3,103 additions & 0 deletions lib/node_modules/@stdlib/ndarray/base/includes/test/test.9d.js

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions lib/node_modules/@stdlib/ndarray/base/includes/test/test.js
982 changes: 982 additions & 0 deletions lib/node_modules/@stdlib/ndarray/base/includes/test/test.nd.js

Large diffs are not rendered by default.