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

ruby-changes:13532

From: nobu <ko1@a...>
Date: Mon, 12 Oct 2009 19:55:47 +0900 (JST)
Subject: [ruby-changes:13532] Ruby:r25309 (trunk): * test/ruby/test_regexp.rb (TestRegexp#test_parse_kg): suppress

nobu	2009-10-12 19:55:40 +0900 (Mon, 12 Oct 2009)

  New Revision: 25309

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

  Log:
    * test/ruby/test_regexp.rb (TestRegexp#test_parse_kg): suppress
      warnings while tests.

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

Index: test/ruby/test_regexp.rb
===================================================================
--- test/ruby/test_regexp.rb	(revision 25308)
+++ test/ruby/test_regexp.rb	(revision 25309)
@@ -586,7 +586,7 @@
     failcheck('()\g<-2>')
     check(/\A(?<x>.)(?<x>.)\k<x>\z/, %w(aba abb), %w(abc .. ....))
     check(/\A(?<x>.)(?<x>.)\k<x>\z/i, %w(aba ABa abb ABb), %w(abc .. ....))
-    check(/\k\g/, "kg")
+    check('\k\g', "kg")
     failcheck('(.\g<1>)')
     failcheck('(.\g<2>)')
     failcheck('(?=\g<1>)')

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

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