From: "Mauricio Fernández" Date: 2003-05-15T21:49:18+09:00 Subject: Re: Test::Unit sequencing On Thu, May 15, 2003 at 06:34:50PM +0900, Brian Candler wrote: > On Thu, May 15, 2003 at 05:29:35PM +0900, Mauricio Fern?ndez wrote: > > This thread should interest you: [ruby-talk:62836] > > Thank you, very interesting. Conclusion: write one test method, and divide > it up into subtest methods which are called explicitly in the right order. > > Cheers, > > Brian. > > (Boggles at the fact that there have been 11,239 posts to this list so > far this year... the first was ruby-talk:60251) Considering I've posted 336 messages (not including this one) to ruby-talk so far in 2003, I'm responsible for around 3% of the volume, with almost 2.5 postings per day :) Now, who'd have the questionable honor of being the fastest poster?... (could as well be me :-P) batsman@tux-chan:/tmp/milio$ expand -t2 analize.rb require "parsedate" count = 0 state = :FIND_MSG date = to = nil while line = gets case state when :FIND_MSG state = :FIND_DATA if line =~ /^From / when :FIND_DATA if line =~ /^To: (.*)/ && !to to = $1 elsif line =~ /^Date: (.*)/ && !date date = $1 end if to && date year, month = ParseDate.parsedate date count += 1 if to == "ruby-talk@ruby-lang.org" && year == 2003 to = date = nil state = :FIND_MSG end end end puts "Sent #{count} messages to ruby-talk this year." batsman@tux-chan:/tmp/milio$ cat Sent.all | ruby analize.rb Sent 336 messages to ruby-talk this year. -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com The memory management on the PowerPC can be used to frighten small children. -- Linus Torvalds