From 7c9e815d940c0b8de7b4a212301c8b1cef62ae2d Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 3 Mar 2008 08:54:31 +0000 Subject: [PATCH] test updated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_utf16.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/ruby/test_utf16.rb b/test/ruby/test_utf16.rb index 74ddcf752e..91a693295a 100644 --- a/test/ruby/test_utf16.rb +++ b/test/ruby/test_utf16.rb @@ -259,6 +259,10 @@ EOT def test_gsub s = "abcd".force_encoding("utf-16be") + assert_nothing_raised { + s.gsub(Regexp.new(".".encode("utf-16be")), "xy") + } + s = "ab\0\ncd".force_encoding("utf-16be") assert_raise(ArgumentError) { s.gsub(Regexp.new(".".encode("utf-16be")), "xy") }