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

version» Context lines:

Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:1388:    <if variable="_.zero_float_array">1</if><else>0</else>    <if variable="_.empty_string_array">1</if><else>0</else>    <if variable="_.empty_array_array">1</if><else>0</else>    </emit>    </rxml>    <result>111111111110111110</result>   </test>         <!-- ............................................................ --> + <comment>Variable existence and null values</comment> +  + <test> +  <rxml type="string"> +  <set variable="var.foo"/> +  <if variable-exists="var.foo">foo exists</if> +  <if variable-exists="var.bar">bar exists</if> +  </rxml> +  <result>foo exists</result> + </test> +  + <test> +  <rxml type="string"> +  <emit source="TESTER" test="3" skiprows="1" maxrows="2"> +  &TESTER.data; +  </emit> +  </rxml> +  <result></result> + </test> +  + <test> +  <rxml type="string"> +  <emit source="TESTER" test="3" skiprows="1" maxrows="2"> +  <copy-scope from="TESTER" to="var"/> +  &var.data; +  </emit> +  </rxml> +  <result></result> + </test> +  + <test> +  <rxml type="string"> +  <emit source="TESTER" test="3" skiprows="1" maxrows="2"> +  <emit source="values" from-scope="TESTER"> +  &_.index;=[&_.value;] +  </emit>, +  </emit> +  </rxml> +  <result>counter=[1],data=[]counter=[2],</result> + </test> +  + <test> +  <rxml type="string"> +  <emit source="TESTER" test="3" skiprows="1" maxrows="2"> +  <insert variables="full" scope="TESTER"/>, +  </emit> +  </rxml> +  <result>counter=1,counter=2 + data=TestNull(),</result> + </test> +  +  + <!-- ............................................................ -->   <comment>Sort</comment>      <test>   <rxml><sort separator=,>1,3,5,0,8</sort></rxml>   <result>0,1,3,5,8</result>   </test>      <test>   <rxml><sort>1   3