diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-16 08:21:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-16 08:21:28 +0000 |
commit | 953f511bb9e8a2fb75b53546b7796936bc4c369d (patch) | |
tree | 2d39520658531c89eed43988199766e721750ceb | |
parent | de26eababa2e77e5c9274eac5633a62355bcc7b1 (diff) | |
download | ruby-953f511bb9e8a2fb75b53546b7796936bc4c369d.tar.gz |
* test/ruby/test_{regexp,rubyoptions}.rb: trivial change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_regexp.rb | 6 | ||||
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 5 |
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 (?: |