require 'test/unit'
require 'erb'

class TestERB < Test::Unit::TestCase

  def test_single_line_comment
    str = <<HDOC
       <%place = "world"%>
       <% # this is a valid comment %>
       hello <%= place %>
HDOC

    e = ERB.new(str)
    result = e.result
    assert_match(/hello world/, result)
  end

end
