testing C code with python

Scott David Daniels scott.daniels at acm.org
Fri Nov 11 12:52:01 EST 2005


>Bilgehan.Balban at gmail.com wrote:
> A simple question - Is it common/good practice to test C code using
> Python? 

I certainly do such testing (hand-wrapped, because it doesn't
seem to cost too much time to do so.  Usually I develop in Python
and accumulate my tests there, then write the C equivalent, and
move the tests to the C code.  I've done this for programs that
were always to have become C programs as well as for those things
I intend to wrap as Python modules.

-- 
-Scott David Daniels
scott.daniels at acm.org



More information about the Python-list mailing list