From: Nicholas Wieland Date: 2005-06-01T21:01:19+09:00 Subject: Re: [RFC] DocTest module - gabriele renzi : > Nicholas Wieland ha scritto: > >Hi all, > > hi, > > >this is the first time I write code in Ruby that's not Rails-centric, so > >I'd like to have feedback and comments on this real newbish attempt to > >port Python doctest module to Ruby (http://rubyurl.com/tE0er). > > I have little time and can't check your code.. but have you looked at > what has been already done in this field ? > http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/116284 Yes, I found extract.rb and looked at it, but it doen't seem to do the same thing of doctest. As a long time Python programmer I'm accustomed to trying my code in an interactive Python shell while programming, doctest is useful because I can cut and paste what I've done inside the Python shell and use it as a test and as real documentation on the usage of what I wrote. If I understand it correctly Florian's code seems to extract normal tests from comments, so it's a different use case. TIA, ngw -- checking for life_signs in -lKenny... no Oh my god, make (1) killed Kenny ! You, bastards ! nicholas_wieland-at-yahoo-dot-it ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it