[前][次][番号順一覧][スレッド一覧]

ruby-changes:5072

From: akr <ko1@a...>
Date: Sat, 24 May 2008 11:30:09 +0900 (JST)
Subject: [ruby-changes:5072] Ruby:r16567 (trunk): add a test for .

akr	2008-05-24 10:57:02 +0900 (Sat, 24 May 2008)

  New Revision: 16567

  Modified files:
    trunk/bootstraptest/test_knownbug.rb

  Log:
    add a test for [ruby-dev:34679].


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=16567&r2=16566&diff_format=u

Index: bootstraptest/test_knownbug.rb
===================================================================
--- bootstraptest/test_knownbug.rb	(revision 16566)
+++ bootstraptest/test_knownbug.rb	(revision 16567)
@@ -100,3 +100,8 @@
   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]'

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]