[Hiki-cvs 1591] hiki/hiki @ 2402c95 [master] remove obsoleted tests

Back to archive index

SHIBATA Hiroshi null****@okkez*****
2013年 12月 24日 (火) 17:07:07 JST


SHIBATA Hiroshi	2013-12-24 17:07:07 +0900 (Tue, 24 Dec 2013)

  New Revision: 2402c95292b7d4a74808bf6c4b99cddfd7444cd6
  https://github.com/hiki/hiki/commit/2402c95292b7d4a74808bf6c4b99cddfd7444cd6

  Message:
    remove obsoleted tests

  Modified files:
    test/util_test.rb

  Modified: test/util_test.rb (+0 -20)
===================================================================
--- test/util_test.rb    2013-12-04 09:46:03 +0900 (0ee99fe)
+++ test/util_test.rb    2013-12-24 17:07:07 +0900 (154cd2c)
@@ -31,26 +31,6 @@ class TestUtil < Test::Unit::TestCase
     assert_equal( "@@ -1,3 +1,2 @@\n 123\n-abc\n 456\n", unified_diff( @t2, @t1 ) )
   end
 
-  def test_euc_to_utf8
-    omit("do not use this method with Ruby1.9") if Object.const_defined?(:Encoding)
-    hoge_euc = "\xA4\xDB\xA4\xB2"
-    hoge_utf8 = "ほげ"
-    fullwidth_wave_euc = "\xA1\xC1"
-    fullwidth_wave_utf8 = "〜"
-    assert_equal(hoge_utf8, euc_to_utf8(hoge_euc))
-    assert_equal(fullwidth_wave_utf8, euc_to_utf8(fullwidth_wave_euc))
-  end
-
-  def test_utf8_to_euc
-    omit("do not use this method with Ruby1.9") if Object.const_defined?(:Encoding)
-    hoge_euc = "\xA4\xDB\xA4\xB2"
-    hoge_utf8 = "ほげ"
-    fullwidth_wave_euc = "\xA1\xC1"
-    fullwidth_wave_utf8 = "〜"
-    assert_equal(hoge_euc, utf8_to_euc(hoge_utf8))
-    assert_equal(fullwidth_wave_euc, utf8_to_euc(fullwidth_wave_utf8))
-  end
-
   def test_plugin_error
     error = Object.new
     mock(error).class.returns("Hiki::PluginError")




Hiki-cvs メーリングリストの案内
Back to archive index