ruby-changes:3486
From: ko1@a...
Date: 10 Jan 2008 23:26:23 +0900
Subject: [ruby-changes:3486] akr - Ruby:r14979 (trunk): add a test.
akr 2008-01-10 23:26:08 +0900 (Thu, 10 Jan 2008) New Revision: 14979 Modified files: trunk/test/ruby/test_m17n.rb Log: add a test. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_m17n.rb?r1=14979&r2=14978&diff_format=u Index: test/ruby/test_m17n.rb =================================================================== --- test/ruby/test_m17n.rb (revision 14978) +++ test/ruby/test_m17n.rb (revision 14979) @@ -248,6 +248,10 @@ } end + def test_utf16_valid_encoding + assert_equal(false, "\xd8\x00\xd8\x00".force_encoding("utf-16be").valid_encoding?) + end + def test_regexp_too_short_multibyte_character assert_raise(SyntaxError) { eval('/\xfe/e') } assert_raise(SyntaxError) { eval('/\x8e/e') } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml