test/ft_1_unset.rb in openwferu-0.9.4 vs test/ft_1_unset.rb in openwferu-0.9.5

- old
+ new

@@ -8,18 +8,20 @@ # require 'flowtestbase' -class FlowTest1 < FlowTestBase +class FlowTest1 < Test::Unit::TestCase + include FlowTestBase #def setup #end #def teardown #end + #def xxxx_unset_0 def test_unset_0 dotest(\ '''<process-definition name="n" revision="0"> <sequence> <set variable="x" value="y" /> @@ -29,11 +31,12 @@ </sequence> </process-definition>''', 'set y y unset') end - def test_unset_1 + #def xxxx_unset_1 + def test_unset_2 dotest(\ '''<process-definition name="n" revision="0"> <sequence> <set field="x" value="y" /> <print>set ${f:x}</print> @@ -42,10 +45,11 @@ </sequence> </process-definition>''', 'set y unset') end + #def xxxx_unset_2 def test_unset_2 dotest(\ '''<process-definition name="n" revision="0"> <sequence> <set variable="//x" value="y" /> @@ -55,10 +59,11 @@ </sequence> </process-definition>''', 'set y unset y') end + #def xxxx_unset_3 def test_unset_3 dotest(\ '''<process-definition name="n" revision="0"> <sequence> <set variable="//x" value="y" /> @@ -68,10 +73,11 @@ </sequence> </process-definition>''', 'set y unset') end + #def xxxx_unset_4 def test_unset_4 dotest(\ '''<process-definition name="n" revision="0"> <sequence> <set variable="/x" value="y" /> @@ -81,10 +87,11 @@ </sequence> </process-definition>''', 'set y unset') end + #def xxxx_unset_5 def test_unset_5 dotest(\ '''<process-definition name="n" revision="0"> <sequence> <set variable="/x" value="y" /> @@ -96,36 +103,22 @@ </process-definition> </process-definition>''', 'set y unset y') end - def test_unset_6 - dotest(\ -'''<process-definition name="unset_6" revision="0"> - <sequence> - <set variable="/x" value="y" /> - <print>set ${x}</print> - <sub0/> - <print>unset ${x}</print> - </sequence> - <process-definition name="sub0"> - <unset variable="/x" /> - </process-definition> -</process-definition>''', 'set y -unset') - end - + #def xxxx_set_a0 def test_set_a0 dotest(\ '''<process-definition name="set_a0" revision="0"> <sequence> <set variable="x">y</set> <print>${x}</print> </sequence> </process-definition>''', 'y') end + #def xxxx_set_a1 def test_set_a1 dotest(\ '''<process-definition name="set_a1" revision="0"> <sequence> <set variable="x"> @@ -134,10 +127,11 @@ <print>${x}</print> </sequence> </process-definition>''', 'true') end + #def xxxx_set_a1f def test_set_a1f dotest(\ '''<process-definition name="set_a1f" revision="0"> <sequence> <set variable="x"> @@ -146,10 +140,11 @@ <print>${x}</print> </sequence> </process-definition>''', 'false') end + #def xxxx_set_with_nested_string_0 def test_set_with_nested_string_0 dotest(\ '''<process-definition name="set_a1f" revision="0"> <sequence> <set variable="x"> @@ -158,9 +153,10 @@ <print>${x}</print> </sequence> </process-definition>''', '4321') end + #def xxxx_set_with_nested_string_1 def test_set_with_nested_string_1 dotest(\ '''<process-definition name="set_a1f" revision="0"> <sequence> <set field="x">