diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-03 10:48:35 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-03 10:48:35 +0000 |
commit | 45a0f45983847db4184fa82ac201f3a8e07e7142 (patch) | |
tree | 66ff83b79f457c7ce9ab8f3028cc32c3b70e1d1c /bootstraptest | |
parent | 07a9f813a3d4c3ab8ab84df88234c4f0641a16d4 (diff) | |
download | ruby-45a0f45983847db4184fa82ac201f3a8e07e7142.tar.gz ruby-45a0f45983847db4184fa82ac201f3a8e07e7142.tar.xz ruby-45a0f45983847db4184fa82ac201f3a8e07e7142.zip |
* bootstraptest/test_eval.rb, test_knownbug.rb: move a fixed test.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_eval.rb | 10 | ||||
-rw-r--r-- | bootstraptest/test_knownbug.rb | 9 |
2 files changed, 10 insertions, 9 deletions
diff --git a/bootstraptest/test_eval.rb b/bootstraptest/test_eval.rb index b2a576246..a0e37b9b9 100644 --- a/bootstraptest/test_eval.rb +++ b/bootstraptest/test_eval.rb @@ -198,3 +198,13 @@ assert_equal %q{[10, main]}, %q{ end }, '[ruby-dev:31372]' end + +assert_normal_exit %q{ + STDERR.reopen(STDOUT) + class Foo + def self.add_method + class_eval("def some-bad-name; puts 'hello' unless @some_variable.some_function(''); end") + end + end + Foo.add_method +}, '[ruby-core:14556] reported by Frederick Cheung' diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 441212c17..3da255493 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -3,13 +3,4 @@ # So all tests will cause failure. # -assert_normal_exit %q{ - STDERR.reopen(STDOUT) - class Foo - def self.add_method - class_eval("def some-bad-name; puts 'hello' unless @some_variable.some_function(''); end") - end - end - Foo.add_method -}, '[ruby-core:14556] reported by Frederick Cheung' |