mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test for concatinating euc-jp and ascii-8bit string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ec165c09b0
commit
6c6cf008cd
1 changed files with 9 additions and 0 deletions
|
@ -47,3 +47,12 @@ assert_equal 'ok', %q{
|
|||
:ng
|
||||
end
|
||||
}, '[ruby-dev:32452]'
|
||||
|
||||
assert_equal 'ok', %q{
|
||||
begin
|
||||
"\xa1\xa1".force_encoding("euc-jp") + "\xa1".force_encoding("ascii-8bit")
|
||||
:ng
|
||||
rescue ArgumentError
|
||||
:ok
|
||||
end
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue