test/ft_2_concurrence.rb in openwferu-0.9.7 vs test/ft_2_concurrence.rb in openwferu-0.9.8
- old
+ new
@@ -35,11 +35,11 @@
<print>b</print>
</sequence>
</concurrence>
</process-definition>''',
"a",
- 0.03,
+ true,
false)
end
#def xxxx_con_2
def test_con_2
@@ -51,11 +51,12 @@
<print>a</print>
</sequence>
<print>b</print>
</concurrence>
</process-definition>''',
- "b")
+ "b",
+ true)
end
#def xxxx_con_3
def test_con_3
dotest(
@@ -63,11 +64,12 @@
<concurrence over-if="${over}">
<print>a</print>
<set variable="over" value="true" />
</concurrence>
</process-definition>''',
- "a")
+ "a",
+ true)
end
#def xxxx_con_4
def test_con_4
dotest(
@@ -80,11 +82,11 @@
<print>b</print>
</concurrence>
</process-definition>''',
"""b
a""",
- 2)
+ true)
end
#def xxxx_con_5
def test_con_5
dotest(
@@ -97,29 +99,28 @@
<print>b</print>
</concurrence>
</process-definition>''',
"""b
a""",
- 2)
+ true)
end
class TestDefinition6 < ProcessDefinition
- def make
- process_definition :name => "con", :revision => "6" do
- concurrence :over_if => "1 == 1" do
- sequence do
- _sleep :for => "350"
- _print "a"
- end
- _print "b"
+ sequence do
+ concurrence :over_if => "1 == 1" do
+ sequence do
+ _sleep :for => "350"
+ _print "a"
end
+ _print "b"
end
+ _print "c"
end
end
#def xxxx_con_6
def test_con_6
- dotest(TestDefinition6, "b")
+ dotest(TestDefinition6, "b\nc")
end
end