From: Daniel Berger Date: 2005-05-13T03:40:07+09:00 Subject: Re: [ ruby-Patches-1900 ] Pointless argc check in Array#select Austin Ziegler wrote: > On 5/12/05, ts wrote: > >>>>>>>"D" == Daniel Berger writes: >> >>D> Strangely, though, I can't get this test to pass: >>D> assert_raises(LocalJumpError){ [].select } >> Why do you want that it raise an error ? > > > Daniel is adding to the test suite for Ruby to verify that things do > what they're supposed to do. > > -austin Ah, here's the issue. # test.rb a = [1,2,3] a.select # LocalJumpError [].select # no error I'd call that a bug. I guess I better get crackin' with that test suite, eh? Dan