test/ft_43_pat10.rb in ruote-0.9.18 vs test/ft_43_pat10.rb in ruote-0.9.19

- old
+ new

@@ -8,78 +8,78 @@ require 'flowtestbase' require 'openwfe/def' class FlowTest43 < Test::Unit::TestCase - include FlowTestBase + include FlowTestBase - #def setup - #end + #def setup + #end - #def teardown - #end + #def teardown + #end - # - # Test 0 - # + # + # Test 0 + # - class TestCase43a0 < OpenWFE::ProcessDefinition - def initialize (jump) - super() - @jump = jump + class TestCase43a0 < OpenWFE::ProcessDefinition + def initialize (jump) + super() + @jump = jump + end + def make + process_definition :name => "jump", :revision => "0" do + sequence do + set :field => "__cursor_command__", :value => "jump #{@jump}" + cursor do + _print "0" + _print "1" + _print "2" + end + _print "3" end - def make - process_definition :name => "jump", :revision => "0" do - sequence do - set :field => "__cursor_command__", :value => "jump #{@jump}" - cursor do - _print "0" - _print "1" - _print "2" - end - _print "3" - end - end - end + end end + end - def test_0 + def test_0 - dotest TestCase43a0.new(1), "1\n2\n3" - end + dotest TestCase43a0.new(1), "1\n2\n3" + end - def test_1 + def test_1 - dotest TestCase43a0.new(2), "2\n3" - end + dotest TestCase43a0.new(2), "2\n3" + end - def test_2 + def test_2 - dotest TestCase43a0.new(2000), "2\n3" - end + dotest TestCase43a0.new(2000), "2\n3" + end - # - # Test 3 - # + # + # Test 3 + # - class TestCase43a3 < OpenWFE::ProcessDefinition - sequence do - set :field => "__cursor_command__", :value => "jump 2" - cursor do - _print "0" - skip :step => 2 - jump :step => 0 - _print "1" - end - _print "2" - end + class TestCase43a3 < OpenWFE::ProcessDefinition + sequence do + set :field => "__cursor_command__", :value => "jump 2" + cursor do + _print "0" + skip :step => 2 + jump :step => 0 + _print "1" + end + _print "2" end + end - def test_3 + def test_3 - dotest TestCase43a3, "0\n1\n2" - end + dotest TestCase43a3, "0\n1\n2" + end end