Initial Revision
[ohcount] / test / unit / jsp_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class JspTest < LingoTest
4         def test_comment
5 #               html_lb = Ohcount::LanguageBreakdown.new("html", "<%\n%>", "", 0)
6 #               java_lb = Ohcount::LanguageBreakdown.new("java", "", " //comment\n", 0)
7 #               assert_equal [html_lb, java_lb], Ohcount::parse("<%\n //comment\n%>", "jsp")
8         end
9
10         def test_comment2
11                 html_lb = Ohcount::LanguageBreakdown.new("html", "%>", "", 0)
12                 java_lb = Ohcount::LanguageBreakdown.new("java", "", "<% //comment\n", 0)
13                 assert_equal [java_lb, html_lb], Ohcount::parse(" <% //comment\n%>", "jsp")
14         end
15
16         def test_comprehensive
17                 verify_parse("jsp1.jsp")
18         end
19 end