Sha256: 69d1e27082b17289ed0e4e7bc9c1ba9eb6f6c72e05cbb710695f1e578e98e399
Contents?: true
Size: 1.56 KB
Versions: 4
Compression:
Stored size: 1.56 KB
Contents
# # Testing OpenWFE # # John Mettraux at openwfe.org # # Mon Oct 9 22:19:44 JST 2006 # require 'flowtestbase' class FlowTest17 < Test::Unit::TestCase include FlowTestBase #def setup #end #def teardown #end def test_condition_0 dotest(\ '''<process-definition name="con" revision="0"> <if test="a == a"> <print>ok</print> </if> </process-definition>''', "ok") end def test_condition_1 dotest(\ '''<process-definition name="con" revision="0"> <if test="a == b"> <print>ok</print> </if> </process-definition>''', "") end def test_condition_2 dotest(\ '''<process-definition name="con" revision="0"> <sequence> <set field="toto" value="nada" /> <if test="${f:toto} == nada"> <print>ok</print> </if> </sequence> </process-definition>''', "ok") end def test_condition_3 dotest(\ '''<process-definition name="con" revision="0"> <sequence> <set field="toto" value="true" /> <if test="${f:toto}"> <print>ok</print> </if> </sequence> </process-definition>''', "ok") end def test_condition_4 dotest(\ '''<process-definition name="con" revision="0"> <if rtest="1+2 == 3"> <print>ok</print> </if> </process-definition>''', "ok") end def test_condition_5 dotest(\ '''<process-definition name="con" revision="0"> <if test="1+2 == 3"> <print>ok</print> <print>nok</print> </if> </process-definition>''', "nok") end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
openwferu-0.9.5 | test/ft_17_condition.rb |
openwferu-0.9.6 | test/ft_17_condition.rb |
openwferu-0.9.7 | test/ft_17_condition.rb |
openwferu-0.9.8 | test/ft_17_condition.rb |