diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-20 15:27:35 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-20 15:27:35 +0000 |
| commit | 51405c8f7493a68992f5e858b55d3a922a24dbbf (patch) | |
| tree | e079fa6e038ce49b2289f80347f14fe48d8dff36 /test/ruby | |
| parent | 4f3e1f3fd709e5de0abc93e0cce52761e71bbad3 (diff) | |
| download | ruby-51405c8f7493a68992f5e858b55d3a922a24dbbf.tar.gz ruby-51405c8f7493a68992f5e858b55d3a922a24dbbf.tar.xz ruby-51405c8f7493a68992f5e858b55d3a922a24dbbf.zip | |
* string.c (tr_trans): wrong encoding check for tree strings.
* test/ruby/test_m17n.rb (TestM17N::test_tr_s): "invalid mbstring
sequence" is not an error to be tested.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_m17n.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index 8b06a2e07..1923d9294 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -1643,7 +1643,7 @@ class TestM17N < Test::Unit::TestCase #puts "#{encdump s1}.tr_s(#{encdump s2}, #{encdump s3})" t = s1.tr_s(s2, s3) rescue ArgumentError - e = $! + e = $! unless /mbstring sequence/ =~ $!.message end if e encs = [] @@ -1651,7 +1651,7 @@ class TestM17N < Test::Unit::TestCase encs << s2.encoding if !is_ascii_only?(s2) encs << s3.encoding if !is_ascii_only?(s3) encs.uniq! - #p e, encs + #p e, encs, assert(1 < encs.length, "#{encdump s1}.tr_s(#{encdump s2}, #{encdump s3})") end } |
