mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Test Mac Format detection and line splitting
This commit is contained in:
		
							
								
								
									
										1
									
								
								samples/Text/mac.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								samples/Text/mac.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| line 1 | ||||
| @@ -65,6 +65,14 @@ class TestBlob < Test::Unit::TestCase | ||||
|     assert_equal ["module Foo", "end", ""], blob("Ruby/foo.rb").lines | ||||
|   end | ||||
|  | ||||
|   def test_mac_format | ||||
|     assert blob("Text/mac.txt").mac_format? | ||||
|   end | ||||
|  | ||||
|   def test_lines_mac_format | ||||
|     assert_equal ["line 1", "line 2", ""], blob("Text/mac.txt").lines | ||||
|   end | ||||
|  | ||||
|   def test_size | ||||
|     assert_equal 15, blob("Ruby/foo.rb").size | ||||
|   end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user