ruby-changes:7148
From: naruse <ko1@a...>
Date: Sun, 17 Aug 2008 08:41:04 +0900 (JST)
Subject: [ruby-changes:7148] Ruby:r18667 (trunk): * test/iconv/test_option.rb (test_ignore_option): skip if iconv
naruse 2008-08-17 08:40:46 +0900 (Sun, 17 Aug 2008) New Revision: 18667 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18667 Log: * test/iconv/test_option.rb (test_ignore_option): skip if iconv doesn't have transliterate. * test/iconv/test_option.rb (test_translit_option): ditto. Modified files: trunk/ChangeLog trunk/test/iconv/test_option.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 18666) +++ ChangeLog (revision 18667) @@ -1,3 +1,10 @@ +Sun Aug 17 08:38:26 2008 NARUSE, Yui <naruse@r...> + + * test/iconv/test_option.rb (test_ignore_option): skip if iconv + doesn't have transliterate. + + * test/iconv/test_option.rb (test_translit_option): ditto. + Sun Aug 17 01:29:46 2008 Tanaka Akira <akr@f...> * include/ruby/io.h (rb_io_t): new fields: readconv, crbuf, crbuf_off, Index: test/iconv/test_option.rb =================================================================== --- test/iconv/test_option.rb (revision 18666) +++ test/iconv/test_option.rb (revision 18667) @@ -2,6 +2,7 @@ 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 @@ 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/