spec/stanzacmp_spec.lua

changeset 99
dc56d434e406
parent 98
88a3e03f4b9f
child 100
f2b3e8e6690f
equal deleted inserted replaced
98:88a3e03f4b9f 99:dc56d434e406
107 107
108 108
109 109
110 yes(s01, s02); 110 yes(s01, s02);
111 end); 111 end);
112
113 it("should match unordered children at the top level", function ()
114 yes("<foo><one/><two/></foo>", "<foo><two/><one/></foo>");
115 end);
116
117 it("should not match unordered children", function ()
118 no("<foo><one><a/><b/></one></foo>", "<foo><one><b/><a/></one></foo>");
119 end);
120
121 it("should be possible to disable ordered matching", function ()
122 yes("<foo><one scansion:strict='no'><a/><b/></one></foo>", "<foo><one><b/><a/></one></foo>");
123 end);
112 end); 124 end);

mercurial