[NEW] Parse *.apsx, *.ascx files. Resulted in new polyglots cs_aspx, vb_aspx.
[ohcount] / test / unit / parsers / vb_aspx_test.rb
1 require File.dirname(__FILE__) + '/../../test_helper'
2
3 class Ohcount::VbAspxTest < Ohcount::Test
4
5         def test_comment
6                 html_lb = Ohcount::LanguageBreakdown.new("html", "<%\n%>", "", 0)
7                 vb_lb = Ohcount::LanguageBreakdown.new("visualbasic", "", "'comment\n", 0)
8                 assert_equal [html_lb, vb_lb], Ohcount::parse("<%\n 'comment\n%>", "vb_aspx")
9         end
10
11         def test_comprehensive
12                 verify_parse("vb.aspx")
13         end
14
15 end