summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-24 01:57:02 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-24 01:57:02 +0000
commitd6fbfcf490b5465691f940e7fa5a9931c456ad47 (patch)
tree07edf82059fc4d3adb4f3d66b8f576bab6521707
parentbd91f4b8a9ae441d4e4ccc9560f667e2831af993 (diff)
downloadruby-d6fbfcf490b5465691f940e7fa5a9931c456ad47.tar.gz
ruby-d6fbfcf490b5465691f940e7fa5a9931c456ad47.tar.xz
ruby-d6fbfcf490b5465691f940e7fa5a9931c456ad47.zip
add a test for [ruby-dev:34679].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--bootstraptest/test_knownbug.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index 69cbd8f86..f90746765 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -100,3 +100,8 @@ assert_normal_exit %q{
100.times {|i| a << i << nil << nil }
p a.compact!
}
+
+assert_equal 'ok', %q{
+ a = [false]
+ (a[0] &&= true) == false ? :ok : :ng
+}, '[ruby-dev:34679]'