mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-16 06:15:34 +00:00
.h is ambiguous
This commit is contained in:
@@ -6,6 +6,9 @@ class TestLanguage < Test::Unit::TestCase
|
||||
include Linguist
|
||||
|
||||
def test_ambiguous_extensions
|
||||
assert Language.ambiguous?('.h')
|
||||
assert_equal Language['C'], Language.find_by_extension('h')
|
||||
|
||||
assert Language.ambiguous?('.m')
|
||||
assert_equal Language['Objective-C'], Language.find_by_extension('m')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user