diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-23 03:44:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-23 03:44:55 +0000 |
commit | d514cd3ca0dedfd62e86698e53b4dc01dff75ed2 () | |
tree | 8050b9b431a510fcb6c361a51eb836159b218ed6 | |
parent | 596a275035e2cd7ef4bd86f344f54fa4dd31c54e (diff) |
* test/ruby/test_regexp.rb (test_dup_warn): read in UTF-8
encoding regardless environment. * test/ruby/envutil.rb (invoke_ruby): add encoding option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | test/ruby/envutil.rb | 4 | ||||
-rw-r--r-- | test/ruby/test_regexp.rb | 8 |
3 files changed, 16 insertions, 3 deletions
@@ -1,3 +1,10 @@ Wed Jun 23 06:44:05 2010 Nobuyoshi Nakada <[email protected]> * configure.in (fchown): need to check. a by Eric Wong @@ -76,6 +76,10 @@ module EnvUtil opt[:in] = in_c opt[:out] = out_c if capture_stdout opt[:err] = err_c if capture_stderr case args.first when Hash child_env = [args.shift] @@ -819,9 +819,11 @@ class TestRegexp < Test::Unit::TestCase end def test_dup_warn - 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 |