On Wed, Sep 28, 2011 at 04:38:30PM -0400, Hans-Christoph Steiner wrote:
>>> But regular automated unit tests is something that we sorely need.
>>
>> In the abstract, I'm interested in this.  Writing some test cases  
>> would be a
>> great way for me to improve my skills with both Tcl and Pd.
>>
>> Any suggestions about areas of Pd that are particularly suitable for  
>> unit
>> testing?
>
> I think that audio tests would be the best way to start.  Basically  
> generate some audio to an table/array, then compare it to the expected  
> result.  There are a number of objects that do type-punning to speed  
> things up.  Modern compilers with their vectorization and other  
> optimziations don't like type punning, so its a common source of errors.

Note that I created a bunch of unit tests with text file outputs for some of 
the non-audio parts of Pd for the WebPd project (for my own sanity):

http://mccormick.cx/projects/WebPd/tests

Note sure if they are in a state that is useful to anybody though.

Cheers,

Chris.

-------------------
http://mccormick.cx

_______________________________________________
Pd-dev mailing list
[email protected]
http://lists.puredata.info/listinfo/pd-dev

Reply via email to