mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Use namespace.js for the heuristic test with no match
This commit is contained in:
@@ -20,8 +20,9 @@ class TestHeuristcs < Test::Unit::TestCase
|
||||
Dir.glob("#{samples_path}/#{language_name}/#{file}")
|
||||
end
|
||||
|
||||
def test_no_language
|
||||
results = Heuristics.call(file_blob("C++/render_adapter.cpp"), [])
|
||||
def test_no_match
|
||||
language = []
|
||||
results = Heuristics.call(file_blob("JavaScript/namespace.js"), language)
|
||||
assert_equal [], results
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user