Sha256: c6bc090396c838aef8bc443c81356b8083f230e027b0ec7125eff016fe6fed14

Contents?: true

Size: 1002 Bytes

Versions: 1

Compression:

Stored size: 1002 Bytes

Contents

#
# Testing OpenWFE
#
# John Mettraux at openwfe.org
#
# Sun Oct 29 16:18:25 JST 2006
#

require 'test/unit'
require 'openwfe/expressions/expressionmap'

#
# testing misc things
#

class ExpmapTest < Test::Unit::TestCase

  #def setup
  #end

  #def teardown
  #end

  def test_expmap_0

    em = OpenWFE::ExpressionMap.new

    #puts em.to_s

    assert_equal \
      em.get_class(:sequence),
      OpenWFE::SequenceExpression

    assert_equal \
      em.get_class(:sequence),
      em.get_class("sequence")

    assert_not_equal \
      em.get_class(:loop),
      em.get_class(:cursor)

    assert \
      em.get_class('process-definition') == OpenWFE::DefineExpression,
      "class of 'process-definition' should be DefineExpression"
    assert \
      em.is_definition?('process-definition'),
      "process-definition should be considered as a definition"
    assert \
      em.is_definition?(:process_definition),
      "process-definition should be considered as a definition (2)"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.19 test/expmap_test.rb