test/misc_test.rb in openwferu-0.9.6 vs test/misc_test.rb in openwferu-0.9.7
- old
+ new
@@ -34,22 +34,10 @@
def test_ends_with
assert \
OpenWFE::ends_with("c'est la fin", "fin")
end
- def test_expression_map
-
- em = OpenWFE::ExpressionMap.new('expressionmap', {})
-
- 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"
- end
-
def test_ensure_for_filename
assert OpenWFE::ensure_for_filename("abc") == "abc"
assert OpenWFE::ensure_for_filename("a/c") == "a_c"
assert OpenWFE::ensure_for_filename("a\\c") == "a_c"
@@ -60,9 +48,13 @@
def test_clean_path
assert OpenWFE::clean_path("my//file/path") == "my/file/path"
assert OpenWFE::clean_path("my//file//path") == "my/file/path"
+ end
+
+ def test_stu
+ assert_equal "a_b_c", OpenWFE::stu("a b c")
end
def test_dup
a0 = A.new
a0.a = 1