summaryrefslogtreecommitdiffstats
path: root/bootstraptest/test_eval.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-19 05:20:21 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-19 05:20:21 +0000
commitd20844c082c3fd4905e2cb9a6b318189d9ca1acb (patch)
tree55cf3c7f4e7a02a3e8a4f44b5041463132043376 /bootstraptest/test_eval.rb
parent27fbfd88fa796e1a1dbfae9eddbdeb1d30f42825 (diff)
downloadruby-d20844c082c3fd4905e2cb9a6b318189d9ca1acb.tar.gz
ruby-d20844c082c3fd4905e2cb9a6b318189d9ca1acb.tar.xz
ruby-d20844c082c3fd4905e2cb9a6b318189d9ca1acb.zip
* bootstraptest/test_knownbug.rb: move solved tests.
* bootstraptest/test_eval.rb, test_literal.rb, test_syntax.rb, test_thread.rb: ditto. * test/ruby/test_m17n.rb, test_proc.rb, test_sprintf.rb, test_string.rb, test/ruby/test_struct.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_eval.rb')
-rw-r--r--bootstraptest/test_eval.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstraptest/test_eval.rb b/bootstraptest/test_eval.rb
index 47976a304..339e763f4 100644
--- a/bootstraptest/test_eval.rb
+++ b/bootstraptest/test_eval.rb
@@ -227,3 +227,12 @@ assert_equal 'ok', %q{
:ng
end
}, "[ruby-dev:34236]"
+
+assert_equal 'ok', %q{
+ begin
+ eval("class nil::Foo; end")
+ :ng
+ rescue Exception
+ :ok
+ end
+}