add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1951ceeed7
commit
759c6d2a89
@ -262,6 +262,10 @@ EOT
|
||||
"Regexp.new(#{encdump s}).encoding")
|
||||
end
|
||||
|
||||
def test_regexp_match
|
||||
assert_raise(ArgumentError) { Regexp.new("aa".force_encoding("utf-16be")) =~ "aa" }
|
||||
end
|
||||
|
||||
def test_gsub
|
||||
s = "abcd".force_encoding("utf-16be")
|
||||
assert_nothing_raised {
|
||||
|
Loading…
x
Reference in New Issue
Block a user