From d6fbfcf490b5465691f940e7fa5a9931c456ad47 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 24 May 2008 01:57:02 +0000 Subject: add a test for [ruby-dev:34679]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_knownbug.rb | 5 +++++ 1 file changed, 5 insertions(+) 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]' -- cgit