Sha256: e86d4694ee4152980ae02b95670dbc3e0a9f9f6f1c215bd98280d3a3eca9de32

Contents?: true

Size: 1.09 KB

Versions: 14

Compression:

Stored size: 1.09 KB

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

14 entries across 14 versions & 2 rubygems

Version Path
openwferu-0.9.15 test/expmap_test.rb
openwferu-0.9.10 test/expmap_test.rb
openwferu-0.9.10.653 test/expmap_test.rb
openwferu-0.9.11 test/expmap_test.rb
openwferu-0.9.12 test/expmap_test.rb
openwferu-0.9.12.863 test/expmap_test.rb
openwferu-0.9.13 test/expmap_test.rb
openwferu-0.9.14 test/expmap_test.rb
openwferu-0.9.9 test/expmap_test.rb
openwferu-0.9.16 test/expmap_test.rb
openwferu-0.9.17 test/expmap_test.rb
openwferu-0.9.7 test/expmap_test.rb
openwferu-0.9.8 test/expmap_test.rb
ruote-0.9.18 test/expmap_test.rb