Merge branch 'master' of git://labs.ohloh.net/git/ohcount
[ohcount] / test / unit / lisp_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class Ohcount::LispTest < Ohcount::Test
4
5         def test_comment
6                 lb = [Ohcount::LanguageBreakdown.new("lisp", "", ";;; comment", 0)]
7                 assert_equal lb, Ohcount::parse(" ;;; comment", "lisp")
8         end
9
10         def test_doc_string
11                 lb = [Ohcount::LanguageBreakdown.new("lisp", "", '""" comment """', 0)]
12                 assert_equal lb, Ohcount::parse(' """ comment """', "lisp")
13         end
14
15         def test_doc_string_blank
16                 lb = [Ohcount::LanguageBreakdown.new("lisp", "", '""""""', 0)]
17                 assert_equal lb, Ohcount::parse(' """"""', "lisp")
18         end
19
20         def test_comprehensive
21                 verify_parse("lsp1.lsp")
22         end
23 end