diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-28 04:20:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-28 04:20:35 +0000 |
commit | d85195712da7a02a428c7e68669c1972da2ffcf6 (patch) | |
tree | 901ff956493d333831cf361d77e08d0b5dd933af /test/ruby/test_dir_m17n.rb | |
parent | bd50aaf618a04184ff9e6542f0a4fa1213c006ee (diff) | |
download | ruby-d85195712da7a02a428c7e68669c1972da2ffcf6.tar.gz |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_dir_m17n.rb')
-rw-r--r-- | test/ruby/test_dir_m17n.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_dir_m17n.rb b/test/ruby/test_dir_m17n.rb index a8fab3d216..091c12c797 100644 --- a/test/ruby/test_dir_m17n.rb +++ b/test/ruby/test_dir_m17n.rb @@ -11,7 +11,7 @@ class TestDir_M17N < Test::Unit::TestCase } 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::TestCase 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 |