spec/stanzacmp_spec.lua

changeset 101
91a9e557e0e5
parent 100
f2b3e8e6690f
child 151
8191f165b9dd
equal deleted inserted replaced
100:f2b3e8e6690f 101:91a9e557e0e5
120 end); 120 end);
121 121
122 it("should be possible to disable ordered matching", function () 122 it("should be possible to disable ordered matching", function ()
123 yes("<foo><one scansion:strict='no'><a/><b/></one></foo>", "<foo><one><b/><a/></one></foo>"); 123 yes("<foo><one scansion:strict='no'><a/><b/></one></foo>", "<foo><one><b/><a/></one></foo>");
124 end); 124 end);
125
126 it("should match when there are many children", function ()
127 yes([[<s>
128 <x>
129 <a/>
130 <b/>
131 <c/>
132 </x>
133 </s>]]
134 , [[<s>
135 <x>
136 <a/>
137 <b/>
138 <c/>
139 </x>
140 </s>]]);
141 end);
125 end); 142 end);

mercurial