Sha256: 909c50be4e52fb9b678160d76e8b93618e2b6563024297ba11d2d9ed224c5be1

Contents?: true

Size: 710 Bytes

Versions: 1

Compression:

Stored size: 710 Bytes

Contents

#
# Testing OpenWFEru
#
# John Mettraux at openwfe.org
#
# Sat Feb 16 19:07:42 JST 2008
#

require 'flowtestbase'


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

  #def setup
  #end

  #def teardown
  #end

  #
  # Test 0
  #

  class Test0 < OpenWFE::ProcessDefinition
    concurrence do
      _loop do
        alpha
      end
      _loop do
        alpha
      end
    end
  end

  def test_0

    @engine.register_participant :alpha do
      sleep 0.002
    end

    fei = launch Test0

    sleep 0.350

    1000.times do |i|
      print "."
      ps = @engine.process_status fei
      assert ( ! ps.paused?)
      #p ps.expressions.size
    end

    #dotest Test0, "1\n2\n3"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.19 test/ft_83_badpause.rb