Closed
Description
Description
Currently, the @stdlib/ndarray/base/nullary/test/test.js
only tests whether the main export is a function.
This RFC proposes to add tests to verify:
-
The first argument provided is an ndarray-like object
-
The input ndarray-like object contains valid
data
,dtype
,shape
,stride
,offset
, andorder
properties -
No modification occurs if the
data
property of the input ndarray-like object is empty -
The second argument provided is a function
-
The second argument returns a value compatible with the
dtype
of the output ndarray -
The
nullary
function returns void
Related Issues
No.
Questions
No.
Other
No.
Checklist
- I have read and understood the Code of Conduct.
- Searched for existing issues and pull requests.
- The issue name begins with
RFC:
.