[RFC]: add tests for @stdlib/ndarray/base/nullary
#2229
Labels
Needs Discussion
Needs further discussion.
RFC
Request for comments. Feature requests and proposed changes.
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
propertiesNo modification occurs if the
data
property of the input ndarray-like object is emptyThe second argument provided is a function
The second argument returns a value compatible with the
dtype
of the output ndarrayThe
nullary
function returns voidRelated Issues
No.
Questions
No.
Other
No.
Checklist
RFC:
.The text was updated successfully, but these errors were encountered: