test/ft_3_equals.rb in openwferu-0.9.1 vs test/ft_3_equals.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
#
@@ -76,9 +76,43 @@
<equals value="a" other-value="b" />
<print>nok</print>
<print>ok</print>
</if>
</process-definition>''', "ok")
+ end
+
+ def test_equals_0
+ dotest(\
+'<process-definition name="'+test_name+'''" revision="0">
+ <sequence>
+ <set field="a" value="true" />
+ <print>${f:a}</print>
+ <if>
+ <equals field-value="a" other-value="true" />
+ <print>true</print>
+ <print>bad test_equals_0</print>
+ </if>
+ </sequence>
+</process-definition>''',
+"""true
+true""")
+ end
+
+ def test_equals_1
+ dotest(\
+'<process-definition name="'+test_name+'''" revision="0">
+ <sequence>
+ <set variable="a" value="true" />
+ <print>${a}</print>
+ <if>
+ <equals variable-value="a" other-value="true" />
+ <print>true</print>
+ <print>bad test_equals_1</print>
+ </if>
+ </sequence>
+</process-definition>''',
+"""true
+true""")
end
end