diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-20 00:50:13 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-20 00:50:13 +0000 |
commit | bc162c69ea86378d6c0f649f2fecbf1a38bdddfb (patch) | |
tree | 0dd984e2fb8409010f82e12d2c9bdbfe206a1e3e /bootstraptest | |
parent | f5e7602c330110f28163708afac91f6de69999a7 (diff) | |
download | ruby-bc162c69ea86378d6c0f649f2fecbf1a38bdddfb.tar.gz |
* bootstraptest/test_syntax.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_syntax.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb index e407d7cf5f..37b07b0c15 100644 --- a/bootstraptest/test_syntax.rb +++ b/bootstraptest/test_syntax.rb @@ -644,5 +644,21 @@ assert_equal 'true', %q{ assert_normal_exit %q{ eval "while true; return; end rescue p $!" }, '[ruby-dev:31663]' +assert_equal :ok, %q{ + def bar + raise + end + + def foo + 1.times{ + begin + return bar + rescue + :ok + end + } + end + foo +} |