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

version» Context lines:

Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:940:   <test>   <rxml><set variable='var.i' value='10' /><set variable='var.j' value='0'/><set variable="var.x" value="-0.2"/><if variable="var.x > -0.3">1</if><else>0</else></rxml>   <result>1</result>   </test>      <test>   <rxml><emit source="values" values="1,2,3" split=","><if variable="_.value = 1">&_.value;</if></emit></rxml>   <result>1</result>   </test>    + <test> +  <rxml><set variable="var.i" expr="1 - 1"/><if variable="var.i is 0">a</if><else>b</else></rxml> +  <result>a</result> + </test>    -  + <test> +  <rxml><if variable="var.i is 0">a</if><else>b</else></rxml> +  <result>b</result> + </test> +  + <test> +  <rxml><set variable="var.i" expr="1 - 1"/><if variable="var.i = ?*">a</if><else>b</else></rxml> +  <result>a</result> + </test> +  + <test> +  <rxml><if variable="var.i = ?*">a</if><else>b</else></rxml> +  <result>b</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