From: "Volkmann, Mark" Date: 2002-10-04T23:05:52+09:00 Subject: Re: assertions in Ruby This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C26BAF.02931E40 Content-Type: text/plain; charset="iso-8859-1" Yes, I'm aware of RubyUnit. I love it and use it extensively! However, I think there is a place for assertions too. Assertions provide useful documentation inside the code as opposed to be being in a separate file as I believe most unit tests are implemented. My examples demonstrated another potential use of assertions which is to provide a weak form of type checking ... which of course has been a controversial issue on the mailing list in the past few weeks. > -----Original Message----- > From: Bulat Ziganshin [mailto:bulatz@integ.ru] > Sent: Friday, October 04, 2002 8:55 AM > To: ruby-talk@ruby-lang.org > Subject: Re: assertions in Ruby > > > Hello Mark, > > Friday, October 04, 2002, 5:43:46 PM, you wrote: > > VM> Is anyone aware of a Ruby module that adds support for > assertions such as > VM> what is supported in Java 1.4? I wrote such a thing > yesterday and am > VM> considering releasing it if I'm not duplicating what > someone else has > VM> already done. > > are you know about RubyUnit and concept of unit testing? it is another > way to checking program correctness *********************************************************************************** WARNING: All e-mail sent to and from this address will be received or otherwise recorded by the A.G. Edwards corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ************************************************************************************ ------_=_NextPart_001_01C26BAF.02931E40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: assertions in Ruby

Yes, I'm aware of RubyUnit.  I love it and use it ex= tensively!  However, I think there is a place for assertions too. = ; Assertions provide useful documentation inside the code as opposed to be = being in a separate file as I believe most unit tests are implemented. = ; My examples demonstrated another potential use of assertions which is to = provide a weak form of type checking ... which of course has been a controv= ersial issue on the mailing list in the past few weeks.

> -----Original Message-----
> From: Bulat Ziganshin [mailto:bulatz@integ.ru]
> Sent: Friday, October 04, 2002 8:55 AM
> To: ruby-talk@ruby-lang.org
> Subject: Re: assertions in Ruby
>
>
> Hello Mark,
>
> Friday, October 04, 2002, 5:43:46 PM, you wrote:
>
> VM> Is anyone aware of a Ruby module that adds s= upport for
> assertions such as
> VM> what is supported in Java 1.4?  I wrote= such a thing
> yesterday and am
> VM> considering releasing it if I'm not duplicat= ing what
> someone else has
> VM> already done.
>
> are you know about RubyUnit and concept of unit tes= ting? it is another
> way to checking program correctness



***************************************************************************= ********
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
***************************************************************************= *********
------_=_NextPart_001_01C26BAF.02931E40--