-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
low priorityLow priority issueLow priority issue
Description
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?
array-api-tests/array_api_tests/test_operators_and_elementwise_functions.py
Lines 93 to 97 in adfee28
# 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
low priorityLow priority issueLow priority issue