In article <ba5t77$pdp2p$1 / ID-194283.news.dfncis.de>,
Shashank Date <sdate / everestkc.net> wrote:
>
>"Phil Tomson" <ptkwt / shell1.aracnet.com> wrote in message
>[snip]
>
>> -OR-
>>
>> TEST {
>>  #...
>> }
>>
>> I like the second one, because that's what I'm usually using the code in
>> that secion for; unit testing a module or class(s) that appear above in
>                          ^^^^^^^^^   What ?
>You mean you don't use the wonderful Test::Unit framework ! Shame !!
>Ok, just kidding ;-)

Sure I do.  Right now I do:

if $0 == __FILE__
  require 'testunit'
  
  #do unit testing
end

With this suggestion it would change to:

TEST {
  require 'testunit'
  #do unit testing
}

>
>I really like your suggestion ... I do use it for the same reason. Hope it
>gets accepted.
>
>> Phil
>^^^^^ I like your TaskMaster Framework too :-)

Thanks.

Phil