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