diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-16 23:40:46 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-16 23:40:46 +0000 |
commit | 75c1822daf249a88f52144f4d4698839cb95f7fa (patch) | |
tree | 21e370a42c907a4d217de9602331e7218a24241f /test/iconv/test_option.rb | |
parent | 49e021ebf76943a4b1b5457c08fdf033c830ecfd (diff) | |
download | ruby-75c1822daf249a88f52144f4d4698839cb95f7fa.tar.gz ruby-75c1822daf249a88f52144f4d4698839cb95f7fa.tar.xz ruby-75c1822daf249a88f52144f4d4698839cb95f7fa.zip |
* test/iconv/test_option.rb (test_ignore_option): skip if iconv
doesn't have transliterate.
* test/iconv/test_option.rb (test_translit_option): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/iconv/test_option.rb')
-rw-r--r-- | test/iconv/test_option.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/iconv/test_option.rb b/test/iconv/test_option.rb index a1f3457c3..8c6df56c8 100644 --- a/test/iconv/test_option.rb +++ b/test/iconv/test_option.rb @@ -2,6 +2,7 @@ require File.join(File.dirname(__FILE__), "utils.rb") class TestIconv::Option < TestIconv def test_ignore_option + return unless Iconv.method_defined? :transliterate? iconv = Iconv.new('SHIFT_JIS', 'EUC-JP//ignore') str = iconv.iconv(EUCJ_STR) str << iconv.iconv(nil) @@ -16,6 +17,7 @@ class TestIconv::Option < TestIconv end def test_translit_option + return unless Iconv.method_defined? :transliterate? iconv = Iconv.new('SHIFT_JIS', 'EUC-JP//ignore') str = iconv.iconv(EUCJ_STR) str << iconv.iconv(nil) |