Use namespace.js for the heuristic test with no match

This commit is contained in:
Paul Chaignon
2014-12-02 20:36:18 -05:00
parent e5bc2845cd
commit 7dd318ca76
2 changed files with 96 additions and 2 deletions

View File

@@ -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