From: jrb3@... Date: 2003-12-12T02:51:46+09:00 Subject: Re: Ideas for replacing $0==__FILE__ > On Thu, 11 Dec 2003 06:21:37 +0900, Eric Hodel wrote: > Why not: > > TEST { > ... > } > > The block is only run with ruby -t ...; otherwise it works just like BEGIN > {} and END {} blocks. That makes good sense to me. Looks cleaner inside and outside the file, makes the intent much clearer, and I don't have to go around setting stray executable bits (which CVS often strips off, causing me to write setup commands for otherwise unchanged library trees). And no, I haven't seen the need (yet) for a TEST_BEGIN or TEST_END or NOT_TEST (or equivalent phrasings) in this keyword location. Joseph Beckenbach lead XP tester, Eidogen Inc.