[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: assertions in Ruby
From: "Jason Voegele" <jason () jvoegele ! com>
Date: 2002-10-04 14:30:05
[Download RAW message or body]
Volkmann, Mark wrote:
> 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.
http://www.pragmaticprogrammer.com/ruby/downloads/dbc.html
It's an implementation of Design By Contract for Ruby put together (I
believe) by Andy Hunt. And although it should be viewed mostly as a
prototype, it is directly usable and may inspire you to grow it into
something greater.
--
Jason Voegele
"We believe that we invent symbols. The truth is that they invent us."
-- Gene Wolfe, The Book of the New Sun
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic