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

- old
+ new

@@ -8,48 +8,48 @@ require 'flowtestbase' require 'openwfe/def' class FlowTest51 < Test::Unit::TestCase - include FlowTestBase + include FlowTestBase - #def setup - #end + #def setup + #end - #def teardown - #end + #def teardown + #end + # + # Test 0 + # + + #COUNT = 400 :) + #COUNT = 500 :( + COUNT = 450 # - # Test 0 - # + # before svn639, it broke with a too deep stack with a sequence + # of 450 elements - #COUNT = 400 :) - #COUNT = 500 :( - COUNT = 450 - # - # before svn639, it broke with a too deep stack with a sequence - # of 450 elements - - class TestCondition51a0 < OpenWFE::ProcessDefinition - sequence do - COUNT.times do - toto - end - _print "${f:__result__}" - end + class TestCondition51a0 < OpenWFE::ProcessDefinition + sequence do + COUNT.times do + toto + end + _print "${f:__result__}" end + end - def test_0 + def test_0 - count = 0 + count = 0 - @engine.register_participant :toto do |workitem| - count += 1 - workitem.__result__ = count - end - - dotest(TestCondition51a0, "#{COUNT}") + @engine.register_participant :toto do |workitem| + count += 1 + workitem.__result__ = count end + + dotest(TestCondition51a0, "#{COUNT}") + end end