Not ok iterator 82 -- ./sample/test.rb:1120

sample/test.rb e$B$N<:GT$Ne(B 2e$B$D$a$O0J2<$N$b$N$G$9!#e(B

% ./ruby ./sample/test.rb

not ok iterator 82 – ./sample/test.rb:1120

e$BH4$-=P$9$H!"e(B

% ./ruby -ve ’
def get_block(&block)
block
end

def ljump_test(proc)
begin
proc.call
rescue LocalJumpError
p $!
end
end

ljump_test(get_block{break})

ruby 1.9.0 (2006-06-17) [i686-linux]
#<LocalJumpError: unexpected break>

e$B$H$$$&$N$G!"e(BLocalJumpError e$B$,H/@8$7$J$$$H$$$&$3$H$r3N$+$a$ke(B
e$B%F%9%H$N$h$&$G$9!#$K$b$+$+$o$i$:e(B LocalJumpError e$B$,H/@8$7$F<:e(B
e$BGT$7$F$$$k$o$1$G$9$,!#e(B

e$B$7$+$7!“e(Bbreak e$B$,=q$$$F$”$k%V%m%C%/$Oe(B get_block
e$B$G!"e(Bget_block
e$B$O$9$G$K=*$o$C$?8e$J$N$G!“e(Bbreak [email protected]$O$9$G$K$J$/!”$`$7$me(B
LocalJumpError e$B$,H/@8$9$k$N$,E,@Z$J$N$G$O$J$$$G$7$g$&$+!#e(B