mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	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
This commit is contained in:
		
							parent
							
								
									bd50aaf618
								
							
						
					
					
						commit
						d85195712d
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue