I think unit tests serve these purposes:
- Document an API by example. (We do that in doctests.)
- Guard against regression. (Normal tests.)
- Test emergent properties, i.e. those that cannot be trivially deduced
from reading the source code. (Doctest or normal test, depending on
whether the test is also documentation-worthy or not.)
They can't make 100% sure that the code is valid, they can only increase
confidence.
And since we're in a grey area, we can weigh: Is the added effort to run
and possibly maintain a unit test worth the increased confidence in the
code's validity?
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/5407FE98.7010305%40durchholz.org.
For more options, visit https://groups.google.com/d/optout.