From 7a34e08d847ab72508c8714bfc76687e00a750f6 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 21 Dec 2007 02:56:17 +0000 Subject: [PATCH] * test/ruby/test_m17n.rb (TestM17N::test_tr): "invalid mbstring sequence" is not an error to be tested. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 2 ++ test/ruby/test_m17n.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a9ebbfd403..17b9bd00f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -73,6 +73,8 @@ Fri Dec 21 00:26:39 2007 Yukihiro Matsumoto * test/ruby/test_m17n.rb (TestM17N::test_tr_s): "invalid mbstring sequence" is not an error to be tested. + * test/ruby/test_m17n.rb (TestM17N::test_tr): ditto. + Thu Dec 20 19:29:07 2007 Shugo Maeda * lib/net/imap.rb (initialize): the second argument is an option diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index 1923d9294e..e262e1812c 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -1623,7 +1623,7 @@ class TestM17N < Test::Unit::TestCase #puts "#{encdump s1}.tr(#{encdump s2}, #{encdump s3})" t = s1.tr(s2, s3) rescue ArgumentError - e = $! + e = $! unless /mbstring sequence/ =~ $!.message end if e encs = []