aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-12 10:55:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-12 10:55:40 +0000
commit7a063b7416509b9f8e7ba3cfc5169a04fe021c32 (patch)
tree3d80e46d543f3c3ddeb696620682133107520197 /test
parent511e757cd868a4207bddeffbdf127ad483fcfa80 (diff)
downloadruby-7a063b7416509b9f8e7ba3cfc5169a04fe021c32.tar.gz
* test/ruby/test_regexp.rb (TestRegexp#test_parse_kg): suppress
warnings while tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_regexp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
index 1ad202652d..541804ade5 100644
--- a/test/ruby/test_regexp.rb
+++ b/test/ruby/test_regexp.rb
@@ -586,7 +586,7 @@ class TestRegexp < Test::Unit::TestCase
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>)')