mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue