summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-09 06:41:16 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-09 06:41:16 +0000
commit6e1f6370c2ead4f388e0971c1890c7581d8faf10 (patch)
tree087fde94f7d26141b7853fe9797e0b814c9b2e07
parent37d49efaa70f4a6be2728ece55c0d0ab2beb3983 (diff)
downloadruby-6e1f6370c2ead4f388e0971c1890c7581d8faf10.tar.gz
ruby-6e1f6370c2ead4f388e0971c1890c7581d8faf10.tar.xz
ruby-6e1f6370c2ead4f388e0971c1890c7581d8faf10.zip
add a test for [ruby-dev:31982].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--bootstraptest/test_knownbug.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index 9c1602eb9..d0a5ba81a 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -21,3 +21,15 @@ assert_not_match /method_missing/, %q{
STDERR.reopen(STDOUT)
variable_or_mehtod_not_exist
}
+
+assert_normal_exit %q{
+ ary = (1..10).to_a
+ ary.permutation(2) {|x|
+ if x == [1,2]
+ ObjectSpace.each_object(String) {|s|
+ s.clear if s.length == 40 || s.length == 80
+ }
+ end
+ }
+}, '[ruby-dev:31982]'
+