1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Follow tests for changes of ENV's encoding.

* test/ruby/test_m17n.rb (TestM17N#test_env): the encoding of ENV
  is now locale encoding.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2009-07-13 16:32:00 +00:00
parent f03642038e
commit 5cc1edcd0d
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Tue Jul 14 01:28:17 2009 NARUSE, Yui <naruse@ruby-lang.org>
* test/ruby/test_m17n.rb (TestM17N#test_env): the encoding of
ENV is now locale encoding.
Tue Jul 14 01:24:56 2009 NARUSE, Yui <naruse@ruby-lang.org>
* marshal.c (r_object0): should return real object.

View file

@ -1132,9 +1132,10 @@ class TestM17N < Test::Unit::TestCase
end
def test_env
locale_encoding = Encoding.find("locale")
ENV.each {|k, v|
assert_equal(Encoding::ASCII_8BIT, k.encoding)
assert_equal(Encoding::ASCII_8BIT, v.encoding)
assert_equal(locale_encoding, k.encoding)
assert_equal(locale_encoding, v.encoding)
}
end