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