test/ft_0.rb in openwferu-0.9.15 vs test/ft_0.rb in openwferu-0.9.16
- old
+ new
@@ -18,50 +18,48 @@
#def teardown
#end
def test_print
- dotest(\
+ dotest(
'''<process-definition name="n" revision="0">
<print>ok</print>
</process-definition>''', "ok")
end
+ def test_empty
+ dotest(
+'''<process-definition name="n" revision="0">
+</process-definition>''', "")
+ end
+
def test_dollar_notation_0
- dotest(\
+ dotest(
'''<process-definition name="n" revision="0">
<sequence>
<set variable="x" value="y" />
<print>${x} ${v:x}</print>
</sequence>
</process-definition>''', 'y y')
end
def test_dollar_notation_1
- dotest(\
+ dotest(
'''<process-definition name="n" revision="0">
<sequence>
<set field="x" value="y" />
<print>${f:x} ${field:x}</print>
</sequence>
</process-definition>''', 'y y')
end
def test_dollar_notation_2
- dotest(\
+ dotest(
'''<process-definition name="n" revision="0">
<sequence>
<print>${f:x}X${field:x}</print>
</sequence>
</process-definition>''', 'X')
- end
-
- def test_empty_pool
- dotest(\
-'''<process-definition name="n" revision="0">
- <print>ok</print>
- <print>nok</print>
-</process-definition>''', "ok")
end
end