I am trying to create a few different duck arrays that are backed by different files. Is there a standard test suite that we can inspire ourselves from that helps us assert: "Arrays should implement all these different functions and the results should be correct"
On Mon, Jan 16, 2023 at 3:28 PM Mark Harfouche <mark.harfouche@gmail.com> wrote:
I am trying to create a few different duck arrays that are backed by different files.
Is there a standard test suite that we can inspire ourselves from that helps us assert:
"Arrays should implement all these different functions and the results should be correct"
Have a look at https://github.com/data-apis/array-api-tests/, it does pretty much that and is meant to easily be configurable and can run against an arbitrary array library. For everything in NumPy that's not in the array API standard, I'm not aware of such a test suite (and it's then a fairly ill-defined problem anyway). Cheers, Ralf
Wow this looks great! On Mon, Jan 16, 2023 at 10:52 AM Ralf Gommers <ralf.gommers@gmail.com> wrote:
On Mon, Jan 16, 2023 at 3:28 PM Mark Harfouche <mark.harfouche@gmail.com> wrote:
I am trying to create a few different duck arrays that are backed by different files.
Is there a standard test suite that we can inspire ourselves from that helps us assert:
"Arrays should implement all these different functions and the results should be correct"
Have a look at https://github.com/data-apis/array-api-tests/, it does pretty much that and is meant to easily be configurable and can run against an arbitrary array library.
For everything in NumPy that's not in the array API standard, I'm not aware of such a test suite (and it's then a fairly ill-defined problem anyway).
Cheers, Ralf
_______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-leave@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: mark.harfouche@gmail.com
participants (2)
-
Mark Harfouche
-
Ralf Gommers