Sha256: 9291ab57f2ebf0330ae71487856e37423c296fc6e91bc27f8c5be77fbf15276d

Contents?: true

Size: 863 Bytes

Versions: 1

Compression:

Stored size: 863 Bytes

Contents

#
# Testing OpenWFE
#
# John Mettraux at openwfe.org
#
# Mon Oct  9 22:19:44 JST 2006
#

require 'openwfe/def'
require 'flowtestbase'


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

  #def setup
  #end

  #def teardown
  #end

  #def xxxx_con_0
  def test_con_0
    dotest(
      '''<process-definition name="con" revision="0">
  <concurrence>
    <print>a</print>
    <print>b</print>
  </concurrence>
</process-definition>''',
      [ '''a
b''',
        '''b
a'''
      ])
  end


  #
  # TEST 1

  class TestCon2c1 < OpenWFE::ProcessDefinition
    sequence do
      concurrence :count => "1", :remaining => "forget" do
        _print "a"
        sequence do
          _sleep "500"
          _print "b"
        end
      end
      _print "c"
    end
  end

  def test_con_1
    dotest(
      TestCon2c1,
      "a\nc\nb",
      2)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.19 test/ft_2c_concurrence.rb