Skip to content

[RFC]: add tests for @stdlib/ndarray/base/nullary #2229

Closed
@headlessNode

Description

@headlessNode

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

  • I have read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.
  • The issue name begins with RFC:.

Metadata

Metadata

Assignees

Labels

AcceptedRFC feature request which has been accepted.RFCRequest for comments. Feature requests and proposed changes.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions