[前][次][番号順一覧][スレッド一覧]

ruby-changes:34118

From: nobu <ko1@a...>
Date: Wed, 28 May 2014 13:20:45 +0900 (JST)
Subject: [ruby-changes:34118] nobu:r46199 (trunk): test_dir_m17n.rb: assert_raw_file_name

nobu	2014-05-28 13:20:35 +0900 (Wed, 28 May 2014)

  New Revision: 46199

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46199

  Log:
    test_dir_m17n.rb: assert_raw_file_name
    
    * test/ruby/test_dir_m17n.rb (assert_raw_file_name): rename to
      show caller method in failure messages.

  Modified files:
    trunk/test/ruby/test_dir_m17n.rb
Index: test/ruby/test_dir_m17n.rb
===================================================================
--- test/ruby/test_dir_m17n.rb	(revision 46198)
+++ test/ruby/test_dir_m17n.rb	(revision 46199)
@@ -11,7 +11,7 @@ class TestDir_M17N < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/ruby/test_dir_m17n.rb#L11
     }
   end
 
-  def create_and_check_raw_file_name(code, encoding)
+  def assert_raw_file_name(code, encoding)
     with_tmpdir { |dir|
       assert_separately(["-E#{encoding}"], <<-EOS, :chdir=>dir)
         filename = #{code}.chr('UTF-8').force_encoding("#{encoding}")
@@ -221,15 +221,15 @@ class TestDir_M17N < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/ruby/test_dir_m17n.rb#L221
   end
 
   def test_filename_utf8_raw_jp_name
-    create_and_check_raw_file_name(0x3042, "UTF-8")
+    assert_raw_file_name(0x3042, "UTF-8")
   end
 
   def test_filename_utf8_raw_windows_1251_name
-    create_and_check_raw_file_name(0x0424, "UTF-8")
+    assert_raw_file_name(0x0424, "UTF-8")
   end
 
   def test_filename_utf8_raw_windows_1252_name
-    create_and_check_raw_file_name(0x00c6, "UTF-8")
+    assert_raw_file_name(0x00c6, "UTF-8")
   end
 
   def test_filename_ext_euc_jp_and_int_utf_8

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]