Sha256: 5355d5037251d3ed816a11db9000bd7368c917509d8b50e0fbd23230025a2e2e

Contents?: true

Size: 1.35 KB

Versions: 6

Compression:

Stored size: 1.35 KB

Contents

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

require 'flowtestbase'
require 'openwfe/def'

include OpenWFE


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

    #def setup
    #end

    #def teardown
    #end


    #
    # Test 0
    #

    class TestCase42a0 < ProcessDefinition
        sequence do
            set :variable => "v", :value => "a"
            concurrence do
                set :variable => "v", :value => "b"
                set :variable => "v", :value => "c"
                forget do
                    set :variable => "v", :value => "d"
                end
            end
            _print "v:${v}"
        end
    end

    #def xxxx_0
    def test_0
        dotest(
            TestCase42a0, 
            [ "v:b", "v:c" ])
    end


    #
    # Test 1
    #

    # DISABLED

    class TestCase42a1 < ProcessDefinition
        sequence do
            set :variable => "v", :value => "a"
            concurrence :count => 2 do
                set :variable => "v", :value => "b"
                set :variable => "v", :value => "c"
                lose do
                    set :variable => "v", :value => "d"
                end
            end
            _print "v:${v}"
        end
    end

    def xxxx_1
    #def test_1
        dotest(
            TestCase42a1, 
            "v:d",
            true)
    end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openwferu-0.9.12 test/ft_42_environments.rb
openwferu-0.9.12.863 test/ft_42_environments.rb
openwferu-0.9.13 test/ft_42_environments.rb
openwferu-0.9.14 test/ft_42_environments.rb
openwferu-0.9.15 test/ft_42_environments.rb
openwferu-0.9.16 test/ft_42_environments.rb