summaryrefslogtreecommitdiffstats
path: root/sample/test.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-12 06:28:23 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-12 06:28:23 +0000
commitdae780ba0b567f3faef4e8c1439c6c0841532bff (patch)
tree463ad4ea26443ca63f2cb58844b03531b756282a /sample/test.rb
parent5aa55903a6c20a0989723bf2f84f8932da3a85e4 (diff)
downloadruby-dae780ba0b567f3faef4e8c1439c6c0841532bff.tar.gz
ruby-dae780ba0b567f3faef4e8c1439c6c0841532bff.tar.xz
ruby-dae780ba0b567f3faef4e8c1439c6c0841532bff.zip
* bootstraptest/runner.rb, bootstraptest/test_method.rb, enc/depend,
instruby.rb, lib/mkmf.rb, lib/test/unit/util/procwrapper.rb, mkconfig.rb, sample/test.rb, template/vm.inc.tmpl, test/ruby/test_stringchar.rb: fixes arround String#gsub. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/test.rb')
-rw-r--r--sample/test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/test.rb b/sample/test.rb
index 52898d582..532b485c8 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -1495,7 +1495,7 @@ $x = <<END;
ABCD
ABCD
END
-$x.gsub!(/((.|\n)*?)B((.|\n)*?)D/){$1+$3}
+$x.gsub!(/((.|\n)*?)B((.|\n)*?)D/, '\1\3')
test_ok($x == "AC\nAC\n")
test_ok("foobar" =~ /foo(?=(bar)|(baz))/)