refactor heuristic tests to use new helper

This commit is contained in:
ellemenno
2014-12-01 01:37:55 -05:00
parent 1e68a45515
commit 211cb9567a

View File

@@ -123,14 +123,10 @@ class TestHeuristcs < Test::Unit::TestCase
end end
end end
# Candidate languages = ["LiveScript", "LoomScript"] def test_ls_by_heuristics
def test_ls_livescript_by_heuristics assert_heuristics({
results = Heuristics.disambiguate_ls(fixture("LiveScript/hello.ls")) "LiveScript" => "LiveScript/hello.ls",
assert_equal Language["LiveScript"], results.first "LoomScript" => "LoomScript/HelloWorld.ls"
end })
def test_ls_loomscript_by_heuristics
results = Heuristics.disambiguate_ls(fixture("LoomScript/HelloWorld.ls"))
assert_equal Language["LoomScript"], results.first
end end
end end