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

version» Context lines:

Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:943:   </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 type="string">    <if variable="var.foo">1</if><else>0</else> -  <if variable="var.foo is ">1<!-- Bogus 2.2 behavior. --></if><else>0<!-- 2.1 behavior. --></else> +  <if variable="var.foo is ">1<!-- Bogus 2.2 behavior. --></if><else>0</else> +  <if variable="var.foo != ">1</if><else>0</else>    <if variable="var.foo is 0">1</if><else>0</else>    <if variable="var.foo = ?*">1</if><else>0</else>    </rxml> -  <result>0100</result> +  <result>00100</result>   </test>      <test>    <rxml type="string">    <set variable="var.foo" value=""/>    <if variable="var.foo">1</if><else>0</else>    <if variable="var.foo is ">1</if><else>0</else> -  +  <if variable="var.foo != ">1</if><else>0</else>    <if variable="var.foo is 0">1</if><else>0</else>    <if variable="var.foo = ?*">1</if><else>0</else>    </rxml> -  <result>1100</result> +  <result>11000</result>   </test>      <test>    <rxml type="string"> -  <set variable="var.foo"></set> +  <set variable="var.foo"></set> <!-- var.foo gets the value RXML.nil, i.e. it's still unset. -->    <if variable="var.foo">1</if><else>0</else>    <if variable="var.foo is ">1</if><else>0</else> -  +  <if variable="var.foo != ">1</if><else>0</else>    <if variable="var.foo is 0">1</if><else>0</else>    <if variable="var.foo = ?*">1</if><else>0</else>    </rxml> -  <result>0100</result> +  <result>00100</result>   </test>      <test>    <rxml type="string">    <set variable="var.foo" value="0"/>    <if variable="var.foo">1</if><else>0</else>    <if variable="var.foo is ">1</if><else>0</else> -  +  <if variable="var.foo != ">1</if><else>0</else>    <if variable="var.foo is 0">1</if><else>0</else>    <if variable="var.foo = ?*">1</if><else>0</else>    </rxml> -  <result>1011</result> +  <result>10111</result>   </test>      <test>    <rxml type="string">    <set variable="var.foo" expr="0"/> <!-- Same as value='0' in 2.1. -->    <if variable="var.foo">1</if><else>0<!-- Reported 2.2 behavior. --></else>    <if variable="var.foo is ">1<!-- Reported bogus 2.2 behavior. --></if><else>0</else> -  +  <if variable="var.foo != ">1</if><else>0</else>    <if variable="var.foo is 0">1<!-- Reported 2.1 compat issue. --></if><else>0<!-- Bogus 2.2 behavior. --></else> -  <if variable="var.foo = ?*">1<!-- 2.1 behavior. --></if><else>0<!-- Bogus 2.2 behavior. --></else> +  <if variable="var.foo = ?*">1</if><else>0<!-- Bogus 2.2 behavior. --></else>    </rxml> -  <result>0100</result> +  <result>10111</result>   </test>      <test>    <rxml type="string">    <set variable="var.foo" value="1"/>    <if variable="var.foo">1</if><else>0</else>    <if variable="var.foo is ">1</if><else>0</else> -  +  <if variable="var.foo != ">1</if><else>0</else>    <if variable="var.foo is 0">1</if><else>0</else>    <if variable="var.foo = ?*">1</if><else>0</else>    </rxml> -  <result>1001</result> +  <result>10101</result>   </test>      <test>    <rxml type="string">    <set variable="var.foo" expr="1"/>    <if variable="var.foo">1</if><else>0</else>    <if variable="var.foo is ">1</if><else>0</else> -  +  <if variable="var.foo != ">1</if><else>0</else>    <if variable="var.foo is 0">1</if><else>0</else>    <if variable="var.foo = ?*">1</if><else>0</else>    </rxml> -  <result>1001</result> +  <result>10101</result>   </test>         <!-- ............................................................ -->   <comment>Sort</comment>   <test>   <rxml><sort separator=,>1,3,5,0,8</sort></rxml>   <result>0,1,3,5,8</result>   </test>