From: "Simon Kröger" Date: 2005-09-02T01:00:18+09:00 Subject: Re: [SOLUTION] Word Chains (#44) David Tran wrote: > It feels really bad when you see your solution fail on [SUMMARY] Word Chains > (#44). Yep! > Especially I claim my programs will at least find the solution. > I did do unit test my solutions before post them. > > No matter what, when they fail, I would like to know what happend. > > And I found the reason for it. > > In fact, I am in Windows Box not Unix Box, dito > so I do not have the words (dictionary file), > and I am using this link: > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/153706 > to get the 12dicts-4.0.zip for dictionary. Hmmm! > All words on the zip file are lower case. (except acronym). > And my programs work find for these dictionaries. Yes. > Now, I just go check the Sun solaris unix box about words file, > they are mixed upper and lower case words. Ohoh... > That is the reason why my program fail. > Simply add downcase method to force all words in lower case and my programs > will pass the test again. grrrr... thanks for figuring it out, anyway. cheers Simon