![](https://secure.gravatar.com/avatar/8a6447f6df923c9aaac74a3b47a1e81c.jpg?s=120&d=mm&r=g)
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"
![](https://secure.gravatar.com/avatar/5f88830d19f9c83e2ddfd913496c5025.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/8a6447f6df923c9aaac74a3b47a1e81c.jpg?s=120&d=mm&r=g)
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