Add Language#extensions

This commit is contained in:
Joshua Peek
2011-05-09 22:39:32 -05:00
parent 34b8d422bd
commit 80ff3883ac
2 changed files with 13 additions and 6 deletions

View File

@@ -16,4 +16,10 @@ class TestLanguage < Test::Unit::TestCase
assert_equal "Python", Language['Python'].name
assert_equal "Ruby", Language['Ruby'].name
end
def test_extensions
assert Language['Perl'].extensions.include?('.pl')
assert Language['Python'].extensions.include?('.py')
assert Language['Ruby'].extensions.include?('.rb')
end
end