test/ft_10_loop.rb in openwferu-0.9.4 vs test/ft_10_loop.rb in openwferu-0.9.5
- old
+ new
@@ -16,21 +16,22 @@
$s << "\n"
end
$s = $s.strip()
-class FlowTest10 < FlowTestBase
+class FlowTest10 < Test::Unit::TestCase
+ include FlowTestBase
#def setup
#end
#def teardown
#end
def test_loop_0
dotest(
-'<process-definition name="'+test_name+'''" revision="0">
+'<process-definition name="'+name_of_test+'''" revision="0">
<sequence>
<reval>$i = 0</reval>
<loop>
<print>${r:$i}</print>
<reval>$i = $i + 1</reval>
@@ -42,13 +43,14 @@
</sequence>
</process-definition>''',
$s)
end
+ #def xxxx_loop_1
def test_loop_1
dotest(
-'<process-definition name="'+test_name+'''" revision="0">
+'<process-definition name="'+name_of_test+'''" revision="0">
<sequence>
<reval>$i = 0</reval>
<loop>
<print>${r:$i}</print>
<reval>$i = $i + 1</reval>
@@ -59,13 +61,14 @@
</sequence>
</process-definition>''',
$s)
end
+ #def xxxx_loop_2
def test_loop_2
dotest(
-'<process-definition name="'+test_name+'''" revision="0">
+'<process-definition name="'+name_of_test+'''" revision="0">
<sequence>
<reval>$i = 0</reval>
<loop>
<print>${r:$i}</print>
<reval>$i = $i + 1</reval>
@@ -74,13 +77,14 @@
</sequence>
</process-definition>''',
$s)
end
+ #def xxxx_loop_3
def test_loop_3
dotest(
-'<process-definition name="'+test_name+'''" revision="0">
+'<process-definition name="'+name_of_test+'''" revision="0">
<sequence>
<reval>$i = 0</reval>
<loop>
<print>${r:$i}</print>
<reval>$i = $i + 1</reval>
@@ -89,12 +93,13 @@
</sequence>
</process-definition>''',
$s)
end
+ #def xxxx_loop_4
def test_loop_4
dotest(
-'<process-definition name="'+test_name+'''" revision="0">
+'<process-definition name="'+name_of_test+'''" revision="0">
<sequence>
<reval>$i = 0</reval>
<loop>
<print>${r:$i}</print>
<reval>$i = $i + 1</reval>