From: Martin Hart Date: 2003-01-11T01:38:09+09:00 Subject: Re: iterating in a test On 1/10/03, 4:29:31 PM, Paul Brannan wrote regarding iterating in a test: > Short question: if I have a test that iterates over a list of items, how > can I get assertion failure messages and exceptions to report which > iteraation I am on? I believe that each assert function can take a message string which is dumped if the test fails: 10.times { |i| assert_equal(1, f(i), "Testing f where i=#{i}") } Cheers, Martin