On Dec 31, 2005, at 4:24 PM, Peter Burns wrote: > I think I've improved upon this test code a bit. I found this one to > be a bit brittle, as it will fail solutions with unanticipated paths > of the same or smaller length. I lost some of the metadata in the > switch, as Steve has the different solutions ordered by type (i.e. > primes, powers of two, etc). Looks great Peter. I posted a note about and link to your improved version on my [original post][1]. > I'm just pounding away at this test case code because my mathematician > buddy is busy at the moment. This is quite the nontrivial problem... Exactly why I created my own test cases. :) --Steve [1]: http://swaits.com/articles/2005/12/31/ruby-quiz-60-test-cases