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@14900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
da42c102c1
commit
1347a9a7e0
1 changed files with 4 additions and 0 deletions
|
@ -1883,6 +1883,10 @@ class TestM17N < Test::Unit::TestCase
|
|||
s.ascii_only?
|
||||
s.gsub!(/b/, "\x80")
|
||||
assert_equal(false, s.ascii_only?, "[ruby-core:14566] reported by Sam Ruby")
|
||||
|
||||
s = "abc".force_encoding(Encoding::ASCII_8BIT)
|
||||
t = s.gsub(/b/, "\xa1\xa1".force_encoding("euc-jp"))
|
||||
assert_equal(Encoding::ASCII_8BIT, s.encoding)
|
||||
end
|
||||
|
||||
def test_regexp_match
|
||||
|
|
Loading…
Add table
Reference in a new issue