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

version» Context lines:

Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:578:   <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> +  <result>b</result> +  <!-- The result is arguably bogus, but this behavior cannot be +  fixed in 2.2 due to compatibility with earlier releases. It's +  fixed in 2.1 compatibility mode, though. -->   </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> +  <result>b</result> +  <!-- The result is arguably bogus, but this behavior cannot be +  fixed in 2.2 due to compatibility with earlier releases. It's +  fixed in 2.1 compatibility mode, though. -->   </test>      <test>    <rxml><if variable="var.i = ?*">a</if><else>b</else></rxml>    <result>b</result>   </test>         <!-- ............................................................ -->   <comment>Sort</comment>