mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@18667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
63daa7c07d
commit
067f704f64
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Sun Aug 17 08:38:26 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@fsij.org>
|
Sun Aug 17 01:29:46 2008 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* include/ruby/io.h (rb_io_t): new fields: readconv, crbuf, crbuf_off,
|
* include/ruby/io.h (rb_io_t): new fields: readconv, crbuf, crbuf_off,
|
||||||
|
|
|
@ -2,6 +2,7 @@ require File.join(File.dirname(__FILE__), "utils.rb")
|
||||||
|
|
||||||
class TestIconv::Option < TestIconv
|
class TestIconv::Option < TestIconv
|
||||||
def test_ignore_option
|
def test_ignore_option
|
||||||
|
return unless Iconv.method_defined? :transliterate?
|
||||||
iconv = Iconv.new('SHIFT_JIS', 'EUC-JP//ignore')
|
iconv = Iconv.new('SHIFT_JIS', 'EUC-JP//ignore')
|
||||||
str = iconv.iconv(EUCJ_STR)
|
str = iconv.iconv(EUCJ_STR)
|
||||||
str << iconv.iconv(nil)
|
str << iconv.iconv(nil)
|
||||||
|
@ -16,6 +17,7 @@ class TestIconv::Option < TestIconv
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_translit_option
|
def test_translit_option
|
||||||
|
return unless Iconv.method_defined? :transliterate?
|
||||||
iconv = Iconv.new('SHIFT_JIS', 'EUC-JP//ignore')
|
iconv = Iconv.new('SHIFT_JIS', 'EUC-JP//ignore')
|
||||||
str = iconv.iconv(EUCJ_STR)
|
str = iconv.iconv(EUCJ_STR)
|
||||||
str << iconv.iconv(nil)
|
str << iconv.iconv(nil)
|
||||||
|
|
Loading…
Reference in a new issue