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

ruby-changes:22932

From: naruse <ko1@a...>
Date: Mon, 12 Mar 2012 09:32:27 +0900 (JST)
Subject: [ruby-changes:22932] naruse:r34981 (trunk): Exclude json/add/complex.rb.

naruse	2012-03-12 09:32:16 +0900 (Mon, 12 Mar 2012)

  New Revision: 34981

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34981

  Log:
    Exclude json/add/complex.rb.

  Modified files:
    trunk/test/ruby/test_complex.rb

Index: test/ruby/test_complex.rb
===================================================================
--- test/ruby/test_complex.rb	(revision 34980)
+++ test/ruby/test_complex.rb	(revision 34981)
@@ -1020,7 +1020,7 @@
     end
     assert_equal(Complex(0.5,1.0), Complex(1,2).quo(2))
 
-    unless $".grep(/(\A|\/)complex/).empty?
+    unless $".grep(/(?:\A|(?<!add)\/)complex/).empty?
       assert_equal(Complex(0,2), Math.sqrt(-4.0))
 #      assert_equal(true, Math.sqrt(-4.0).inexact?)
       assert_equal(Complex(0,2), Math.sqrt(-4))

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

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