ruby-changes:3765
From: ko1@a...
Date: Sat, 26 Jan 2008 20:15:31 +0900 (JST)
Subject: [ruby-changes:3765] akr - Ruby:r15254 (trunk): add a test for .
akr 2008-01-26 20:15:24 +0900 (Sat, 26 Jan 2008) New Revision: 15254 Modified files: trunk/test/ruby/test_m17n.rb Log: add a test for [ruby-dev:33406]. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_m17n.rb?r1=15254&r2=15253&diff_format=u Index: test/ruby/test_m17n.rb =================================================================== --- test/ruby/test_m17n.rb (revision 15253) +++ test/ruby/test_m17n.rb (revision 15254) @@ -151,6 +151,10 @@ assert_encoding("EUC-JP", eval(e(%{"\\x80"})).encoding) end + def test_utf8_literal + assert_equal(Encoding::UTF_8, "\u3042".encoding, "[ruby-dev:33406] \"\\u3042\".encoding") + end + def test_string_mixed_unicode assert_raise(SyntaxError) { eval(a(%{"\xc2\xa1\\u{6666}"})) } assert_raise(SyntaxError) { eval(e(%{"\xc2\xa1\\u{6666}"})) } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/