mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
Test Language#name
This commit is contained in:
13
test/test_language.rb
Normal file
13
test/test_language.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
require 'linguist/language'
|
||||
|
||||
require 'test/unit'
|
||||
|
||||
class TestLanguage < Test::Unit::TestCase
|
||||
include Linguist
|
||||
|
||||
def test_name
|
||||
assert_equal "Perl", Language['Perl'].name
|
||||
assert_equal "Python", Language['Python'].name
|
||||
assert_equal "Ruby", Language['Ruby'].name
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user