[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: assertions in Ruby
From:       "Volkmann, Mark" <Mark.Volkmann () AGEDWARDS ! com>
Date:       2002-10-04 14:05:52
[Download RAW message or body]

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.
************************************************************************************

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: assertions in Ruby</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Yes, I'm aware of RubyUnit.&nbsp; I love it and use it \
extensively!&nbsp; However, I think there is a place for assertions too.&nbsp; \
Assertions provide useful documentation inside the code as opposed to be being in a \
separate file as I believe most unit tests are implemented.&nbsp; 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.</FONT></P>

<P><FONT SIZE=2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=2>&gt; From: Bulat Ziganshin [<A \
HREF="mailto:bulatz@integ.ru">mailto:bulatz@integ.ru</A>]</FONT> <BR><FONT \
SIZE=2>&gt; Sent: Friday, October 04, 2002 8:55 AM</FONT> <BR><FONT SIZE=2>&gt; To: \
ruby-talk@ruby-lang.org</FONT> <BR><FONT SIZE=2>&gt; Subject: Re: assertions in \
Ruby</FONT> <BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Hello Mark,</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Friday, October 04, 2002, 5:43:46 PM, you wrote:</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; VM&gt; Is anyone aware of a Ruby module that adds support for \
</FONT> <BR><FONT SIZE=2>&gt; assertions such as</FONT>
<BR><FONT SIZE=2>&gt; VM&gt; what is supported in Java 1.4?&nbsp; I wrote such a \
thing </FONT> <BR><FONT SIZE=2>&gt; yesterday and am</FONT>
<BR><FONT SIZE=2>&gt; VM&gt; considering releasing it if I'm not duplicating what \
</FONT> <BR><FONT SIZE=2>&gt; someone else has</FONT>
<BR><FONT SIZE=2>&gt; VM&gt; already done.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; are you know about RubyUnit and concept of unit testing? it is \
another</FONT> <BR><FONT SIZE=2>&gt; way to checking program correctness</FONT>
</P>

<CODE><FONT SIZE=3><BR>
<BR>
***********************************************************************************<BR>
                
WARNING:  All e-mail sent to and from this address will be received or<BR>
otherwise recorded by the A.G. Edwards corporate e-mail system and is<BR>
subject to archival, monitoring or review by, and/or disclosure to,<BR>
someone other than the recipient.<BR>
************************************************************************************<BR>
 </FONT></CODE></BODY>
</HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic