mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add test for [ruby-dev:32452].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
92af9c0d54
commit
a42bb2a456
1 changed files with 13 additions and 0 deletions
|
@ -34,3 +34,16 @@ assert_equal 'ok', %q{
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert_equal 'ok', %q{
|
||||||
|
begin
|
||||||
|
if ("\xa1\xa2\xa1\xa3").force_encoding("euc-jp").split(//) ==
|
||||||
|
["\xa1\xa2".force_encoding("euc-jp"), "\xa1\xa3".force_encoding("euc-jp")]
|
||||||
|
:ok
|
||||||
|
else
|
||||||
|
:ng
|
||||||
|
end
|
||||||
|
rescue
|
||||||
|
:ng
|
||||||
|
end
|
||||||
|
}, '[ruby-dev:32452]'
|
||||||
|
|
Loading…
Reference in a new issue