summaryrefslogtreecommitdiff
path: root/test/iconv/test_option.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-23 13:56:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-23 13:56:11 +0000
commitce2dc60216934e01910d2a3424c2aa0fe3ce4736 (patch)
tree2fd7e329cf9f391b2fa8201e359e529c19a3c228 /test/iconv/test_option.rb
parent82801b9113222c21b088e173521eda99277d1b1b (diff)
* ext/iconv: deprecated. [Feature #6322]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/iconv/test_option.rb')
-rw-r--r--test/iconv/test_option.rb43
1 files changed, 0 insertions, 43 deletions
diff --git a/test/iconv/test_option.rb b/test/iconv/test_option.rb
deleted file mode 100644
index e81df9d850a..00000000000
--- a/test/iconv/test_option.rb
+++ /dev/null
@@ -1,43 +0,0 @@
-require File.expand_path("../utils.rb", __FILE__)
-
-class TestIconv::Option < TestIconv
- def test_ignore_option
- begin
- iconv = Iconv.new('SHIFT_JIS', 'EUC-JP')
- iconv.transliterate?
- rescue NotImplementedError
- return
- end
- iconv = Iconv.new('SHIFT_JIS', 'EUC-JP//ignore')
- str = iconv.iconv(EUCJ_STR)
- str << iconv.iconv(nil)
- assert_equal(SJIS_STR, str)
- iconv.close
-
- iconv = Iconv.new('SHIFT_JIS//IGNORE', 'EUC-JP//ignore')
- str = iconv.iconv(EUCJ_STR)
- str << iconv.iconv(nil)
- assert_equal(SJIS_STR, str)
- iconv.close
- end
-
- def test_translit_option
- begin
- iconv = Iconv.new('SHIFT_JIS', 'EUC-JP')
- iconv.transliterate?
- rescue NotImplementedError
- return
- end
- iconv = Iconv.new('SHIFT_JIS', 'EUC-JP//ignore')
- str = iconv.iconv(EUCJ_STR)
- str << iconv.iconv(nil)
- assert_equal(SJIS_STR, str)
- iconv.close
-
- iconv = Iconv.new('SHIFT_JIS//TRANSLIT', 'EUC-JP//translit//ignore')
- str = iconv.iconv(EUCJ_STR)
- str << iconv.iconv(nil)
- assert_equal(SJIS_STR, str)
- iconv.close
- end
-end if defined?(TestIconv)