Start with Objective-C

This commit is contained in:
Ted Nyman
2013-12-15 20:15:19 -08:00
parent b3c6c85387
commit 0626def699
2 changed files with 9 additions and 18 deletions

View File

@@ -20,4 +20,9 @@ class TestHeuristcs < Test::Unit::TestCase
results = Heuristics.find_by_heuristics(fixture("Objective-C/StyleViewController.h"), languages)
assert_equal Language["Objective-C"], results.first
end
def test_detect_still_works_if_nothing_matches
match = Language.detect("Hello.m", fixture("Objective-C/hello.m"))
assert_equal Language["Objective-C"], match
end
end