Branch: Tag:

2002-10-25

2002-10-25 16:45:34 by Martin Nilsson <mani@lysator.liu.se>

Some Parser.XML.Tree quote tests.

Rev: lib/modules/Parser.pmod/XML.pmod/testsuite.in:1.3

1: - // $Id: testsuite.in,v 1.2 2002/08/20 19:14:41 nilsson Exp $ + // $Id: testsuite.in,v 1.3 2002/10/25 16:45:34 nilsson Exp $      // DOM      // Tree    -  + test_eq([[ Parser.XML.Tree.parse_input("<a>foo &gt; hej &x.y; hopp &lt; bar</a>")->render_xml(); ]], + [[ "<a>foo &gt; hej &amp;x.y; hopp &lt; bar</a>" ]]) + test_eq([[ Parser.XML.Tree.parse_input("<a>foo &gt; hej &x.y; hopp &lt; bar</a>")->render_xml(1); ]], + [[ "<a>foo &gt; hej &x.y; hopp &lt; bar</a>" ]]) + test_eq([[ Parser.XML.Tree.parse_input("<a>hej &x.y; hopp</a>")->render_xml(); ]], + [[ "<a>hej &amp;x.y; hopp</a>" ]]) + test_eq([[ Parser.XML.Tree.parse_input("<a>hej &x.y; hopp</a>")->render_xml(1); ]], + [[ "<a>hej &x.y; hopp</a>" ]]) + test_eq([[ (string)Parser.XML.Tree.parse_input("<a><b> <c/> </b></a>") ]], + [[ "<a><b> <c/> </b></a>" ]]) +    // NSTree      // XML NS section 2