Sha256: 8dfbbf38294500a490a0df4b6dd5842fbc2bbff49bd827a6fa797633f85d3427

Contents?: true

Size: 605 Bytes

Versions: 2

Compression:

Stored size: 605 Bytes

Contents

require 'ceml'
require 'test/helper'

class TestEngine < Test::Unit::TestCase

  def test_engine
    play COMPLIMENT_SCRIPT
    player :joe, :organizer, :agent
    player :bill, :agent

    asked :joe, /^Describe/
    says :joe, 'red people'

    told :bill, /^Look for red people/
  end

  def test_askchain
    play ASKCHAIN_SCRIPT
    player :joe, :players, :agent
    player :bill, :players, :agent

    asked :joe,  /favorite color/
    asked :bill, /favorite color/
    says :joe, "red"
    says :bill, "green"
    asked :joe, /with the color green/
    asked :bill, /with the color red/
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ceml-0.2.1 test/test_engine.rb
ceml-0.2.0 test/test_engine.rb