test/ft_6_lambda.rb in openwferu-0.9.13 vs test/ft_6_lambda.rb in openwferu-0.9.14
- old
+ new
@@ -19,12 +19,12 @@
#def teardown
#end
def test_lambda_0
- #def xxxx_lambda_0
- dotest(\
+
+ dotest(
'''<process-definition name="lambda_0" revision="0">
<sequence>
<set variable="inside1">
<process-definition>
<print>bonjour ${name}</print>
@@ -33,10 +33,30 @@
<inside1 name="world" />
<print>over</print>
</sequence>
</process-definition>''', """bonjour world
-over""", 3)
+over""")
+ end
+
+ #
+ # TEST 1
+
+ class Test1 < OpenWFE::ProcessDefinition
+ sequence do
+ _set :v => "inside1" do
+ process_definition do
+ _print "hello ${name}"
+ end
+ end
+ inside1 :name => "mundo"
+ _print "done."
+ end
+ end
+
+ def test_1
+
+ dotest(Test1, "hello mundo\ndone.")
end
end