Tests for perl POD.
[ohcount] / test / unit / jsp_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class Ohcount::JspTest < Ohcount::Test
4         def test_comment
5                 html_lb = Ohcount::LanguageBreakdown.new("html", "%>", "", 0)
6                 java_lb = Ohcount::LanguageBreakdown.new("java", "", "<% //comment\n", 0)
7                 assert_equal [java_lb, html_lb], Ohcount::parse(" <% //comment\n%>", "jsp")
8         end
9
10         def test_comprehensive
11                 verify_parse("jsp1.jsp")
12         end
13 end