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, and order 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
Description
Currently, the
@stdlib/ndarray/base/nullary/test/test.jsonly 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, andorderpropertiesNo modification occurs if the
dataproperty of the input ndarray-like object is emptyThe second argument provided is a function
The second argument returns a value compatible with the
dtypeof the output ndarrayThe
nullaryfunction returns voidRelated Issues
No.
Questions
No.
Other
No.
Checklist
RFC:.