Initial Revision
[ohcount] / test / unit / javascript_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class JavascriptTest < LingoTest
4         def test_comments
5                 lb = [Ohcount::LanguageBreakdown.new("javascript", "", "//comment", 0)]
6                 assert_equal lb, Ohcount::parse(" //comment", "javascript")
7         end
8
9         def test_comprehensive
10                 verify_parse("js1.js")
11         end
12
13         def test_comp2
14                 verify_parse("js2.js")
15         end
16 end