From: "Simon Kröger" Date: 2005-09-03T08:39:04+09:00 Subject: Re: Idiomatic conversion of yielding block to array > [...] > Ah, sorry, I missed the fact that you were iterating over characters > instead of lines. 10 == ?\n. Gotcha. > > But isn't that different than the original functionality? He > originally wanted a warning (specifically assert_equal as part of > Test::Unit) for each line that differed. Your code will only match the > first such case then break out of the loop. > > Jacob Fugal hmm, true .. on the other hand assert_equal throws an AssertionFailedError, so this is kind of breaking out of the loop also. (But right, its not the same thing) cheers Simon