Include list of common languages

This commit is contained in:
Joshua Peek
2011-05-20 16:43:40 -05:00
parent 7a141e39c1
commit 03319aa330
3 changed files with 76 additions and 1 deletions

View File

@@ -96,6 +96,14 @@ class TestLanguage < Test::Unit::TestCase
assert Language['Brainfuck'].unpopular?
end
def test_common
assert Language['Perl'].common?
assert Language['Python'].common?
assert Language['Ruby'].common?
assert !Language['Brainfuck'].common?
assert !Language['Makefile'].common?
end
def test_colorize
assert_equal <<-HTML, Language['Text'].colorize("Hello")
<div class="highlight"><pre>Hello