Re: [PATCH] object.c ruby.h (fwd)

From: Masaki Suketa <masaki.suketa@...>
Date: 2002-08-10 12:19:53 UTC
List: ruby-core #315
In message "Re: [PATCH] object.c ruby.h (fwd)"
    on 02/08/09, "NAKAMURA, Hiroshi" <nahi@keynauts.com> writes:

> > If I add assert_true method which checks 'foo == true',
> > could you live with it more pleasantly?
> 
> Yes, I can.  At the next, does method 'assert' become
> 'deprecated'?  ...Sorry, I don't mean it.  I just
> remembered JUnit...

No, at least I never deprecate 'assert' method.

  assert(foo)  # foo should not be nil nor false.
  assert_true(foo) # foo should be true.

If I want to test that foo should not be nil,
I'll use assert. If I want to test that 
foo should be true, I'll use assert_true.

  Regards,
  Masaki Suketa

In This Thread