Skip to content

Generate value filters for element-wise tests #147

Open
@honno

Description

@honno

Currently we parse the spec and generate tests for special cases. How about we use that machine reading to also generate the filter_ we pass to the element-wise tests?

# Values which are special-cased are generated and passed, but are filtered by
# the `filter_` callable before they can be asserted against `refimpl`. We
# automatically generate tests for special cases in the special_cases/ dir. We
# still pass them here so as to ensure their presence doesn't affect the outputs
# respective to non-special-cased elements.

I notice we actually have some incorrect filters (will explore, didn't want to change incase I'm missing other concerns + need to document if so), so this should help with accuracy as well as maintenance.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions