On Jan 16, 2008, at 11:24 AM, Nick Alexander wrote: > On 16-Jan-08, at 11:17 AM, Robert Bradshaw wrote: > >> >> Sounds like a good idea--I'll be able to participate in the morning >> at least. Do we want to require all cdef functions to have doctests? >> Also, how to test them? > > I vote to require. Presumably all cdef functions are exercised by > some part of the python accessible code (otherwise, why are they > present?). Doctests in cdef docstrings are found by the doctesting > architecture and executed. So they will be tested, just not in the > most straightforward way :)
Of course, it'd be nice if every function had ample documentation, but I'd rather have 100% coverage on all user-accessible functions in two files, than 100% coverage in one file for def/cpdef and cdef functions. Also, often the "inderect" tests for cdef functions seem to be redundant with the doctests exposed functions. - Robert --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---