Sha256: 259e370e8344c8d87a8a84390a7052a82e0abdfd4fe79f1a368822d72ef5bac5

Contents?: true

Size: 885 Bytes

Versions: 1

Compression:

Stored size: 885 Bytes

Contents

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

require 'test/unit'
require 'ru/ruutils'
require 'ru/expressionmap'
require 'ru/fe_define'

#
# testing misc things
#

class MiscTest < Test::Unit::TestCase

    #def setup
    #end

    #def teardown
    #end

    def test_starts_with
        assert \
            OpenWFEru::starts_with("//a", "//")
        assert \
            (not OpenWFEru::starts_with("/a", "//"))
    end

    def test_expression_map

        em = OpenWFEru::ExpressionMap.new('expressionmap', {})

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openwferu-0.9.0 test/misctest.rb