diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | test/ruby/test_m17n.rb | 3 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Fri Oct 23 10:51:04 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp> + + * test/ruby/test_m17n.rb (TestM17N#test_sprintf_s): + added an assertion for [ruby-list:46274]. + see also r24506. + Tue Oct 20 17:57:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * marshal.c (w_symbol, r_symreal): fixed the order of symbol and diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index afea18eabb..d8dcde5cac 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -11,6 +11,7 @@ class TestM17N < Test::Unit::TestCase def e(str) str.dup.force_encoding("EUC-JP") end def s(str) str.dup.force_encoding("Windows-31J") end def u(str) str.dup.force_encoding("UTF-8") end + def ua(str) str.dup.force_encoding("US-ASCII") end end include AESU extend AESU @@ -807,6 +808,8 @@ class TestM17N < Test::Unit::TestCase assert_strenc("\x00", 'Windows-31J', s("%s") % s("\x00")) assert_strenc("\x00", 'UTF-8', u("%s") % u("\x00")) assert_equal("EUC-JP", (e("\xc2\xa1 %s") % "foo").encoding.name) + + assert_equal("EUC-JP", (e("%s: %s: %s") % [ua("abc"), u("a"), e("\xc2\xa1")]).encoding.name, "[ruby-list:46274]") end def test_str_lt |