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

version» Context lines:

Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:95:   <test>   <rxml><set variable='var.i' value='3'/><comment><set variable='var.i' value='4'/>x</comment>&var.i;</rxml>   <result>3</result>   </test>      <test>   <rxml><comment>a</comment></rxml>   <result></result>   </test>    + <test> + <rxml><set variable="var.i">3</set><?comment <set variable="var.i">5</set>?>&var.i;</rxml> + <result>3</result> + </test>    -  + <test> + <rxml>a<?comment <b <?comment ?> ?>c</rxml> + <result>a ?>c</result> + </test> +  +    <comment>Define/undefine</comment>   <test>   <rxml><define if='x'>3</define><if x='3'>1</if><undefine if='x'/><if x='3'>1</if><else>0</else></rxml>   <result>10</result>   </test>      <test>   <rxml><define tag='a'>&_.b;&a.c;</define><a c='2' b='1'/></rxml>   <result>12</result>   </test>
Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:604:   <test>   <rxml><define if=p><true/></define><define if=q><false/></define><if p or q>p|q</if><if p or p>p</if><if q or q>q</if></rxml>   <result>p|qp</result>   </test>      <test>   <rxml><define if=p><true/></define><define if=q><false/></define><true/><if false>a</if><else>b</else></rxml>   <result>b</result>   </test>    +  + <comment>Elseif tests</comment> + <test> + <rxml><set variable="var.x">Y</set><if variable="var.x = Y">A</if><elseif variable="var.x = Y">B</elseif><else>C</else></rxml> + <result>A</result> + </test> +  + <test> + <rxml><set variable="var.x">Y</set><if variable="var.x = X">A</if><elseif variable="var.x = Y">B</elseif><else>C</else></rxml> + <result>B</result> + </test> +  + <test> + <rxml><set variable="var.x">Z</set><if variable="var.x = Y">X</if><elseif variable="var.x = Y">B</elseif><else>C</else></rxml> + <result>C</result> + </test> +  +  + <comment>If plugins</comment> + <test> + <rxml><if exists="/index.html">yes</if></rxml> + <result>yes</result> + </test> +  + <test> + <rxml><if exists="/does_not_exist">yes</if></rxml> + <result></result> + </test> +  + <test> + <rxml><if nserious="1">yes</if></rxml> + <result></result> + </test> +  + <test> + <rxml><if module="rxmltags">yes</if></rxml> + <result>yes</result> + </test> +  + <test> + <rxml><if module="nomodule">yes</if></rxml> + <result></result> + </test> +  + <test> + <rxml><true/><if true="1">yes</if></rxml> + <result>yes</result> + </test> +  + <test> + <rxml><false/><if true="1">yes</if></rxml> + <result></result> + </test> +  + <test> + <rxml><true/><if false="1">yes</if></rxml> + <result></result> + </test> +  + <test> + <rxml><false/><if false="1">yes</if></rxml> + <result>yes</result> + </test> +  + <test> + <rxml><if match="buhu is buhu">1</if></rxml> + <result>1</result> + </test> +  + <test> + <rxml><if match="Buhu is buhu">1</if></rxml> + <result>1</result> + </test> +  + <test> + <rxml><if Match="Buhu is buhu">1</if></rxml> + <result></result> + </test> +  + <test> + <rxml><if Match="buhu is buhu">1</if></rxml> + <result>1</result> + </test> +  + <test> + <rxml><if match="a = a">1</if></rxml> + <result>1</result> + </test> +  + <test> + <rxml><if match="a = a = a = a">1</if></rxml> + <result></result> + </test> +  + <test> + <rxml><if sizeof="var.basun = 0">1</if></rxml> + <result>1</result> + </test> +  + <test> + <rxml><if sizeof="var.basun">1</if></rxml> + <result></result> + </test> +  + <test> + <rxml><set variable="var.basun">abc</set><if sizeof="var.basun == 3">7</if></rxml> + <result>7</result> + </test> +  + <test> + <rxml><set variable="var.basun">abc</set><if sizeof="var.basun == 4">7</if></rxml> + <result></result> + </test> +  + <test> + <rxml><set variable="var.x">A</set><if variable="var.x == a">1</if></rxml> + <result>1</result> + </test> +  + <test> + <rxml><set variable="var.x">A</set><if Variable="var.x == A">1</if></rxml> + <result>1</result> + </test> +  + <test> + <rxml><set variable="var.x">A</set><if Variable="var.x == a">1</if></rxml> + <result></result> + </test> +  +  + <comment>Missing test: if date</comment> + <comment>Missing test: if time</comment> + <comment>Missing test: if user</comment> + <comment>Missing test: if group</comment> + <comment>Missing test: if accept</comment> + <comment>Missing test: if config</comment> + <comment>Missing test: if cookie</comment> + <comment>Missing test: if client</comment> + <comment>Missing test: if defined</comment> + <comment>Missing test: if domain</comment> + <comment>Missing test: if ip</comment> + <comment>Missing test: if language</comment> + <comment>Missing test: if pragma</comment> + <comment>Missing test: if prestate</comment> + <comment>Missing test: if referrer</comment> + <comment>Missing test: if supports</comment> + <comment>Missing test: if clientvar</comment> + <comment>Missing test: <cond></comment> + <comment>Missing test: path emit plugin</comment> +    <comment>Emit tests</comment>   <test>   <rxml><emit source="values" values="1,2,3" split=",">&_.value;:</emit></rxml>   <result>1:2:3:</result>   </test>      <test>   <rxml><emit source="values" values="a&#0;b">&_.value;:</emit></rxml>   <result>a:b:</result>   </test>
Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:782:   <test>   <rxml><emit source="TESTER" test="2" filter="data=?" skiprows="3">&_.data;<delimiter>:</delimiter></emit></rxml>   <result>c:a:d:e:a:a:a</result>   </test>      <test>   <rxml><emit source="TESTER" test="2" filter="data=?" skiprows="3" maxrows="5">&_.data;<delimiter>:</delimiter></emit></rxml>   <result>c:a:d:e:a</result>   </test>    + <comment>Missing test: values emit plugin</comment>      <comment>Use tests</comment>   <test>   <rxml><use package="test_rxml_package"/><bä/></rxml>   <result>Mu!</result>   </test>      <test>   <rxml><use package="test_rxml_package"/><bä x="Boo"/></rxml>   <result>Boo!</result>
Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:932:   <test>   <rxml><strlen></strlen></rxml>   <result>0</result>   </test>      <test>   <rxml><strlen>ab   cd</rxml>   <result>5</result>   </test> +  +  + <comment>Entity tests</comment> + <test> + <rxml><set variable="var.x">&amp;</set>&var.x;</rxml> + <result>&amp;amp;</result> + </test> +  + <test> + <rxml><set variable="var.x" value="&amp;"/>&var.x;</rxml> + <result>&amp;</result> + </test> +  + <test> + <rxml><set variable="var.x" value="&amp;"/>&var.x:none;</rxml> + <result>&</result> + </test>