Sha256: 812956f93c14d3b25462cf2ddda77cb3ad053dbbaabcc8632c32de2cd2b031a8

Contents?: true

Size: 868 Bytes

Versions: 10

Compression:

Stored size: 868 Bytes

Contents

#
# Testing OpenWFEru
#
# John Mettraux at openwfe.org
#

require 'flowtestbase'
require 'openwfe/def'

include OpenWFE


class FlowTest51 < Test::Unit::TestCase
    include FlowTestBase

    #def setup
    #end

    #def teardown
    #end


    #
    # Test 0
    #

    #COUNT = 400 :)
    #COUNT = 500 :(
    COUNT = 450
        #
        # before svn639, it broke with a too deep stack with a sequence
        # of 450 elements

    class TestCondition51a0 < ProcessDefinition
        sequence do
            COUNT.times do
                toto
            end
            _print "${f:__result__}"
        end
    end

    #def xxxx_0
    def test_0

        count = 0

        @engine.register_participant :toto do |workitem|
            count += 1
            workitem.__result__ = count
        end

        dotest(TestCondition51a0, "#{COUNT}")
    end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
openwferu-0.9.10 test/ft_51_stack.rb
openwferu-0.9.10.653 test/ft_51_stack.rb
openwferu-0.9.11 test/ft_51_stack.rb
openwferu-0.9.12 test/ft_51_stack.rb
openwferu-0.9.12.863 test/ft_51_stack.rb
openwferu-0.9.13 test/ft_51_stack.rb
openwferu-0.9.14 test/ft_51_stack.rb
openwferu-0.9.15 test/ft_51_stack.rb
openwferu-0.9.16 test/ft_51_stack.rb
openwferu-0.9.17 test/ft_51_stack.rb