From: David Alan Black Date: 2002-08-06T11:30:54+09:00 Subject: Re: Coding challenge (on Ruby Garden) Hi -- On Tue, 6 Aug 2002, Bill Kelly wrote: > Hi, > > > def test_true_3 > > items = [ 1,2 ] > > rows = [ [2,1], [3,1] ] > > assert(one_in_each(items,rows)) > > end > > > > (This tests something fairly important, so I wanted to mention it > > here.) > > Hmm, what about > > items = [ 2,2 ] > rows = [ [1,2], [2,3] ] I'm not sure whether you mean as a unit test, or just whether it should work. Well, to cover both: it should work, and you can add it as a test to the wiki if you want. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav