From: hemant Date: 2007-07-15T04:33:12+09:00 Subject: Re: loop unit test cases? On 7/15/07, aidy wrote: > Hi, > > Is there any way to loop TEST::UNIT test cases to accommodate > different data values? > > class Test_Class < Test::Unit::TestCase > > def test_1 > > > end > > def test_2 > > > end > > > end > Can you explain a bit more? normally people use: class FoobarTestClass < Test::Unit::TestCase def test_for_bar <>.each do #your assertions here end end -- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://blog.gnufied.org