Hi,

> From: dave / thomases.com [mailto:dave / thomases.com]
> Sent: Thursday, June 15, 2000 11:29 AM

> If you don't like it and you _do_ need some kind of self test
> capability, you could always do it other ways. For example, create a
> library called SelfTest.rb, which contains
> 
>    $SelfTest = true
> 
> 
> In your other libraries, have
> 
>    if $SelfTest
>      # code to perform test
>    end
> 
> Then, to enable the self test, use:
> 
> 
>   ruby -r SelfTest  mylibrary.rb

This looks good.  Can I show another soultion?

  if $DEBUG
    # code to perform test
  end

But I will test my library with RubyUnit in the future.

// NaHi