Heuristic for .lsp and .lisp (Common Lisp, NewLisp)

This commit is contained in:
Paul Chaignon
2014-12-06 19:51:45 -05:00
parent bbd1646ae5
commit 0b02b68538
2 changed files with 15 additions and 0 deletions

View File

@@ -126,6 +126,13 @@ class TestHeuristcs < Test::Unit::TestCase
})
end
def test_lsp_by_heuristics
assert_heuristics({
"Common Lisp" => all_fixtures("Common Lisp"),
"NewLisp" => all_fixtures("NewLisp")
})
end
def assert_heuristics(hash)
candidates = hash.keys.map { |l| Language[l] }