If you're using Python, numpy.testing has the tools you'll need:

https://docs.scipy.org/doc/numpy/reference/routines.testing.html

There's also pandas.testing for testing code that uses Pandas.

Thanks,
Ashwin

On Fri, Jul 14, 2017 at 3:27 PM, Terri Yu <[email protected]> wrote:
> Hi everyone,
>
> Are there any resources that explain how to write unit tests for scientific
> software?  I'm writing some software that processes audio signals and there
> are many parameters.  I'm wondering what's the best way to test floating
> point numeric results.
>
> Do I need to test every single parameter?  How can I verify accuracy of
> numeric results... use a different language / library?  I would like to do a
> good job of testing, but I also don't want to write a bunch of semi-useless
> tests that take a long time to run.
>
> I would appreciate any thoughts you have.
>
> Thank you,
>
> Terri
>
> _______________________________________________
> Discuss mailing list
> [email protected]
> http://lists.software-carpentry.org/listinfo/discuss
_______________________________________________
Discuss mailing list
[email protected]
http://lists.software-carpentry.org/listinfo/discuss

Reply via email to