diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-15 07:14:00 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-15 07:14:00 +0000 |
commit | 1a492ba17d2c73de395d46a5f988110b2698d434 (patch) | |
tree | c15777c2c372f6da259260821b65574f6aff5092 /test/ruby/test_m17n.rb | |
parent | c7d3b3f1b489236e47ed9bc09666964c541c25ba (diff) | |
download | ruby-1a492ba17d2c73de395d46a5f988110b2698d434.tar.gz |
Add a test for the encoding of str_aset. [ruby-core:35142]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_m17n.rb')
-rw-r--r-- | test/ruby/test_m17n.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index f6c4a19088..a29d509fc4 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -933,6 +933,10 @@ class TestM17N < Test::Unit::TestCase def test_aset s = e("\xa3\xb0\xa3\xb1\xa3\xb2\xa3\xb3\xa3\xb4") assert_raise(Encoding::CompatibilityError){s["\xb0\xa3"] = "foo"} + + a = ua("a") + a[/a/] = u("") + assert_equal Encoding::US_ASCII, a.encoding end def test_str_center |