Roxen.git / server / etc / test / tests / rxml / RoxenTest_BaseRXML.xml

version» Context lines:

Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:1031:    /></define    ><nisse    ><a><x><c/></x></a    ><a><x><b><y><c/></y></b></x></a    ><x><a><y><a><b><z><c hit="yes"/></z></b></a></y></a></x    ></nisse    ></rxml>    <result><c hit="yes"/></result>   </test>    + <test> +  <rxml type="array"> +  <define container="elements"> +  <value type="array"> +  <value type="string">b <inc variable="var.x"/>&var.x;</value> +  <contents/> +  <value type="string">e <inc variable="var.x"/>&var.x;</value> +  </value> +  </define> +  <value><inc variable="var.x"/>&var.x;</value> +  <elements> +  <value><inc variable="var.x"/>&var.x;</value> +  <value><inc variable="var.x"/>&var.x;</value> +  </elements> +  <value><inc variable="var.x"/>&var.x;</value> +  </rxml> +  <equal>({1, ({"b2", 3, 4, "e5"}), 6})</equal> + </test>    -  + <test> +  <rxml type="mapping"> +  <define container="elements"> +  <value index="B"><inc variable="var.x"/>&var.x;</value> +  <contents/> +  <value index="E"><inc variable="var.x"/>&var.x;</value> +  </define> +  <value index="a"><inc variable="var.x"/>&var.x;</value> +  <elements> +  <value index="b"><inc variable="var.x"/>&var.x;</value> +  <value index="c"><inc variable="var.x"/>&var.x;</value> +  </elements> +  <value index="d"><inc variable="var.x"/>&var.x;</value> +  </rxml> +  <equal>(["a": 1, "B": 2, "b": 3, "c": 4, "E": 5, "d": 6])</equal> + </test> +  +    <!-- ............................................................ -->   <comment>Type tests</comment>      <test>    <rxml type="any"><case case="upper"> a </case></rxml>    <result>A</result>   </test>      <test>    <rxml type="scalar"><case case="upper"> a </case></rxml>
Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:3277:   <rxml>&client.accept-language;</rxml>   <result></result>   </test>      <test>   <rxml>&client.accept-languages;</rxml>   <result></result>   </test>      <test> +  <rxml type="array">&client.accept-languages;</rxml> +  <equal>({})</equal> + </test> +  + <test> +  <rxml type="any">&client.accept-languages;</rxml> +  <equal>RXML.nil</equal> + </test> +  + <test>   <rxml>&client.authenticated;</rxml>   <result></result>   </test>      <test>   <rxml>&client.host;</rxml>   <regexp>^(127\.0\.0\.1|localhost)$</regexp>   </test>      <test>