From: David Holroyd Date: 2006-09-27T01:10:57+09:00 Subject: Re: assert_false On Wed, Sep 27, 2006 at 12:09:24AM +0900, Jason Roelofs wrote: > On 9/26/06, aidy wrote: > > > >Hi, > > > >Does anyone know why assert_false is not inlcuded in Test:Unit, but for > >e.g. assertFalse( ) is a method in JUnit? > > The same reason there's no assert_true? It's redundant, IMO. > > assert truth > assert !truth > assert (not truth) Yet Ruby has both 'if' and 'unless' keywords. I think it wuld be nice if the inverted version of the Assertions methods were named 'deny', e.g. deny_nil vs. assert_not_nil. ;) ta, dave -- http://david.holroyd.me.uk/