*/
public void testRemark () throws ParserException
{
String reference;
Lexer lexer;
Remark node;
String suffix;
reference = "<!-- This is a comment -->";
lexer = new Lexer (reference);
node = (Remark)lexer.nextNode ();
assertEquals ("Tag contents wrong", reference, node.toHtml ());
reference = "<!-- This is a comment -- >";
lexer = new Lexer (reference);
node = (Remark)lexer.nextNode ();
assertEquals ("Tag contents wrong", reference, node.toHtml ());
reference = "<!-- This is a\nmultiline comment -->";
lexer = new Lexer (reference);
node = (Remark)lexer.nextNode ();
assertEquals ("Tag contents wrong", reference, node.toHtml ());
suffix = "<head>";
reference = "<!-- This is a comment -->";
lexer = new Lexer (reference + suffix);
node = (Remark)lexer.nextNode ();
assertEquals ("Tag contents wrong", reference, node.toHtml ());
reference = "<!-- This is a comment -- >";
lexer = new Lexer (reference + suffix);
node = (Remark)lexer.nextNode ();
assertEquals ("Tag contents wrong", reference, node.toHtml ());
reference = "<!-- This is a\nmultiline comment -->";
lexer = new Lexer (reference + suffix);
node = (Remark)lexer.nextNode ();
assertEquals ("Tag contents wrong", reference, node.toHtml ());
}