summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_regexp.rb6
-rw-r--r--test/ruby/test_rubyoptions.rb5
2 files changed, 6 insertions, 5 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
index 7599c0d5e7..1a9066311e 100644
--- a/test/ruby/test_regexp.rb
+++ b/test/ruby/test_regexp.rb
@@ -819,9 +819,9 @@ class TestRegexp < Test::Unit::TestCase
end
def test_dup_warn
- assert_in_out_err(%w/-w -U/, "#coding:utf-8\nx=/[\u3042\u3041]/", [], /\A\z/)
- assert_in_out_err(%w/-w -U/, "#coding:utf-8\nx=/[\u3042\u3042]/", [], /duplicated/)
- assert_in_out_err(%w/-w -U/, "#coding:utf-8\nx=/[\u3042\u3041-\u3043]/", [], /duplicated/)
+ assert_in_out_err(%w/-w -U/, "#coding:utf-8\nx=/[\u3042\u3041]/\n!x", [], /\A\z/)
+ assert_in_out_err(%w/-w -U/, "#coding:utf-8\nx=/[\u3042\u3042]/\n!x", [], /duplicated/)
+ assert_in_out_err(%w/-w -U/, "#coding:utf-8\nx=/[\u3042\u3041-\u3043]/\n!x", [], /duplicated/)
end
def test_property_warn
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index afa5039353..683677c160 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -291,6 +291,7 @@ class TestRubyOptions < Test::Unit::TestCase
t.puts "end"
t.puts "0.times do"
t.puts " if b = 2"
+ t.puts " a += b"
t.puts " end"
t.puts "end"
t.close
@@ -382,8 +383,8 @@ class TestRubyOptions < Test::Unit::TestCase
---------------------------\n
(?:
--\sRuby\slevel\sbacktrace\sinformation\s----------------------------------------\n
- -e:1:in\s`<main>'\n
- -e:1:in\s`kill'\n
+ -e:1:in\s\`<main>\'\n
+ -e:1:in\s\`kill\'\n
)?
\n
(?: