in reply to How to write code tests

Hi,
You have modules thru which you can test your scripts (Do positive and negative tests ) grouped under directory t with extensions t
(eg) /t/test.t
use Test::More
@result = Testpackage->find(name=>"newterm") ;
is($result[0]->name(),"newterm","Find with name parameter works") ;
If the name value returns newterm test passed else failed
Regards
P.B.Sathish Kumar