From 953f511bb9e8a2fb75b53546b7796936bc4c369d Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 16 Jun 2010 08:21:28 +0000 Subject: * 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 --- test/ruby/test_regexp.rb | 6 +++--- test/ruby/test_rubyoptions.rb | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'test') 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`
'\n - -e:1:in\s`kill'\n + -e:1:in\s\`
\'\n + -e:1:in\s\`kill\'\n )? \n (?: -- cgit v1.2.3