test/ft_1_unset.rb in openwferu-0.9.1 vs test/ft_1_unset.rb in openwferu-0.9.2
- old
+ new
@@ -1,8 +1,8 @@
#
-# Testing OpenWFEru
+# Testing OpenWFE
#
# John Mettraux at openwfe.org
#
# Mon Oct 9 22:19:44 JST 2006
#
@@ -144,9 +144,33 @@
<equals value="a" other-value="${x}" />
</set>
<print>${x}</print>
</sequence>
</process-definition>''', 'false')
+ end
+
+ def test_set_with_nested_string_0
+ dotest(\
+'''<process-definition name="set_a1f" revision="0">
+ <sequence>
+ <set variable="x">
+ ${r:"1234".reverse}
+ </set>
+ <print>${x}</print>
+ </sequence>
+</process-definition>''', '4321')
+ end
+
+ def test_set_with_nested_string_1
+ dotest(\
+'''<process-definition name="set_a1f" revision="0">
+ <sequence>
+ <set field="x">
+ ${r:"1234".reverse}
+ </set>
+ <print>${f:x}</print>
+ </sequence>
+</process-definition>''', '4321')
end
end