summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-19 08:46:49 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-19 08:46:49 +0000
commit860b40fd631f280fbc9164abdc36409dcfac7e27 (patch)
tree6e0a3bdc3ea2561c64a5d2846ab306308b4881b6 /bootstraptest
parentdef4a99af2081b428b91e8d00c74dd36caa230ca (diff)
* compile.c (iseq_compile_each): remove "retry" in block.
("iter{retry}" cause syntax error) Currently, "begin; ...; rescue; iter{retry}; end" cause syntax error too. * bootstraptest/test_jump.rb: ditto. * lib/drb/invokemethod.rb: ditto. * sample/drb/darrayc.rb: ditto. * sample/test.rb: ditto. * test/drb/drbtest.rb: ditto. * test/ruby/test_iterator.rb: ditto. * sample/test.rb: add a 'test' directory on the SYSTEM test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_jump.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/bootstraptest/test_jump.rb b/bootstraptest/test_jump.rb
index b1a74d889a..bc1a613b56 100644
--- a/bootstraptest/test_jump.rb
+++ b/bootstraptest/test_jump.rb
@@ -147,15 +147,15 @@ assert_equal %q{131}, %q{
}
}
assert_equal %q{ok}, %q{
- def m a
- yield
- end
-
- i=0
- m(i+=1){
- retry if i<10
- :ok
+begin
+ eval %q{
+ 1.times{
+ retry
+ }
}
+rescue SyntaxError
+ :ok
+end
}
assert_equal %q{3}, %q{
def m