Unit test for fix #1809 on heuristics

This commit is contained in:
Paul Chaignon
2014-12-02 20:06:12 -05:00
parent 37ffdb9020
commit 4ddd8d9d2b

View File

@@ -20,6 +20,11 @@ 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"), [])
assert_equal [], results
end
# Candidate languages = ["C++", "Objective-C"]
def test_obj_c_by_heuristics
# Only calling out '.h' filenames as these are the ones causing issues