diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-05 04:58:41 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-05 04:58:41 +0000 |
commit | b35b33c7516d398e9e93e3e8309b9e5bb29a5267 (patch) | |
tree | c79154a9ac43b992b96f33ddffdaac21274d3be2 /test/iconv/test_simple.rb | |
parent | 28c5fe3c6cc1a55507916bcc0f777dc83e208b30 (diff) |
* test/iconv/test_{basic,option}.rb, test/iconv/utils.rb: added.
* test/iconv/test_partial.rb: renamed from test_simple.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/iconv/test_simple.rb')
-rw-r--r-- | test/iconv/test_simple.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/test/iconv/test_simple.rb b/test/iconv/test_simple.rb deleted file mode 100644 index e449b27542..0000000000 --- a/test/iconv/test_simple.rb +++ /dev/null @@ -1,27 +0,0 @@ -require 'test/unit' -begin - require 'iconv' -rescue LoadError -end - -class TestIConv < Test::Unit::TestCase - ASCII = "ascii" - def test_simple - c = Iconv.open(ASCII, ASCII) - ref = '[ruby-core:17092]' - rescue - return - else - assert_equal("abc", c.iconv("abc")) - assert_equal("c", c.iconv("abc", 2), "#{ref}: with start") - assert_equal("c", c.iconv("abc", 2, 1), "#{ref}: with start, length") - assert_equal("c", c.iconv("abc", 2, 5), "#{ref}: with start, longer length") - assert_equal("bc", c.iconv("abc", -2), "#{ref}: with nagative start") - assert_equal("b", c.iconv("abc", -2, 1), "#{ref}: with nagative start, length") - assert_equal("bc", c.iconv("abc", -2, 5), "#{ref}: with nagative start, longer length") - assert_equal("", c.iconv("abc", 5), "#{ref}: with OOB") - assert_equal("", c.iconv("abc", 5, 2), "#{ref}: with OOB, length") - ensure - c.close if c - end -end if defined?(::Iconv) |