On 2014-05-13 11:48, [email protected] wrote:
Hello,

are here developers in the group who actively test (the routines they
use) e.g. by throwing random input at them?

I sometimes do random tests when testing a ticket. Better yet, such random tests can also be added as a doctest if they don't take too long. You can at least test that the function does not crash, but ideally you would test the output also. For example, I once added a doctest to determinant() for matrices over ZZ that checks that the determinant of A^2 is a square. Besides random testing, also testing for special cases is useful. If you have function dealing with polynomials for example, check that the zero polynomial and constant polynomials work. Test corner cases (e.g. smallest and/or largest allowed input). Also test invalid input, checking that the proper exception gets raised.

Jeroen.

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to