test/misctest.rb in openwferu-0.9.1 vs test/misctest.rb in openwferu-0.9.2

- old
+ new

@@ -1,19 +1,18 @@ # -# Testing OpenWFEru +# Testing OpenWFE # # John Mettraux at openwfe.org # # Sun Oct 29 16:18:25 JST 2006 # require 'test/unit' -require 'utils' -require 'ru/ruutils' -require 'ru/expressionmap' -require 'ru/fe_define' +require 'openwfe/utils' +require 'openwfe/expressions/fe_define' +require 'openwfe/expressions/expressionmap' # # testing misc things # @@ -25,20 +24,25 @@ #def teardown #end def test_starts_with assert \ - OpenWFEru::starts_with("//a", "//") + OpenWFE::starts_with("//a", "//") assert \ - (not OpenWFEru::starts_with("/a", "//")) + (not OpenWFE::starts_with("/a", "//")) end + def test_ends_with + assert \ + OpenWFE::ends_with("c'est la fin", "fin") + end + def test_expression_map - em = OpenWFEru::ExpressionMap.new('expressionmap', {}) + em = OpenWFE::ExpressionMap.new('expressionmap', {}) assert \ - em.get_class('process-definition') == OpenWFEru::DefineExpression, + 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" end