Merge pull request #2003 from pchaigno/cs-heuristics

Heuristics for .cs files: C# and Smalltalk
This commit is contained in:
Arfon Smith
2015-01-17 09:10:58 -06:00
2 changed files with 15 additions and 0 deletions

View File

@@ -133,6 +133,13 @@ class TestHeuristcs < Minitest::Test
})
end
def test_cs_by_heuristics
assert_heuristics({
"C#" => all_fixtures("C#", "*.cs"),
"Smalltalk" => all_fixtures("Smalltalk", "*.cs")
})
end
def assert_heuristics(hash)
candidates = hash.keys.map { |l| Language[l] }