test/ft_15_iterator.rb in openwferu-0.9.6 vs test/ft_15_iterator.rb in openwferu-0.9.7

- old
+ new

@@ -41,10 +41,11 @@ """0 -- x 1 -- y 2 -- z""") end + # # Test 1 # class TestDefinition1 < OpenWFE::ProcessDefinition @@ -59,9 +60,35 @@ def test_ppd_1 #def xxxx_ppd_1 dotest( TestDefinition1, + """0 -- x +1 -- y +2 -- z""") + end + + + # + # Test 2 + # + + class TestDefinition2 < OpenWFE::ProcessDefinition + def make + iterator \ + :on_value => "xayaz", + :to_field => "f0", + :value_separator => "a" do + + _print "${f:__ip__} -- ${f:f0}" + end + end + end + + #def xxxx_iterator_2 + def test_iterator_2 + dotest( + TestDefinition2, """0 -- x 1 -- y 2 -- z""") end