mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Update comment
This commit is contained in:
		| @@ -60,8 +60,7 @@ class TestSamples < Test::Unit::TestCase | |||||||
|       language.all_extensions.each do |extension| |       language.all_extensions.each do |extension| | ||||||
|         language_matches = Language.find_by_filename("foo#{extension}") |         language_matches = Language.find_by_filename("foo#{extension}") | ||||||
|  |  | ||||||
|         # If there is more than one language match for a given extension |         # Check for samples if more than one language matchs the given extension | ||||||
|         # then check that there are examples for that language with the extension |  | ||||||
|         if language_matches.length > 1 |         if language_matches.length > 1 | ||||||
|           language_matches.each do |language| |           language_matches.each do |language| | ||||||
|             samples = "samples/#{language.name}/*#{extension}" |             samples = "samples/#{language.name}/*#{extension}" | ||||||
| @@ -71,8 +70,7 @@ class TestSamples < Test::Unit::TestCase | |||||||
|       end |       end | ||||||
|  |  | ||||||
|       language.filenames.each do |filename| |       language.filenames.each do |filename| | ||||||
|         # If there is more than one language match for a given filename |         # Check for samples if more than one language matchs the given filename | ||||||
|         # then check that there are examples for that language with the extension |  | ||||||
|         if Language.find_by_filename(filename).size > 1 |         if Language.find_by_filename(filename).size > 1 | ||||||
|           sample = "samples/#{language.name}/filenames/#{filename}" |           sample = "samples/#{language.name}/filenames/#{filename}" | ||||||
|           assert File.exists?(sample), |           assert File.exists?(sample), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user