test/description_test.rb in openwferu-0.9.16 vs test/description_test.rb in openwferu-0.9.17
- old
+ new
@@ -7,11 +7,11 @@
# Mon Oct 15 08:42:08 JST 2007
#
require 'test/unit'
-require 'openwfe/expressions/simplerep'
+require 'openwfe/expool/parser'
#
# testing definition.get_description
#
@@ -31,27 +31,32 @@
end
"""
def test_0
- rep = OpenWFE::SimpleExpRepresentation.from_code DEF0
+ #rep = OpenWFE::SimpleExpRepresentation.from_code DEF0
+ rep = OpenWFE::DefParser.parse_string DEF0
- assert_equal rep.get_description, "not much to say"
+ assert_equal(
+ "not much to say",
+ OpenWFE::ExpressionTree.get_description(rep))
end
- DEF1 = '''
+ DEF1 = <<-EOS
<process-definition name="x" revision="y">
<description>
just a tiny process
</description>
<participant ref="nada" />
</process-definition>
-'''.strip
+ EOS
def test_1
- rep = OpenWFE::SimpleExpRepresentation.from_s DEF1
+ rep = OpenWFE::DefParser.parse_string DEF1
- assert_equal rep.get_description, "just a tiny process"
+ assert_equal(
+ "just a tiny process",
+ OpenWFE::ExpressionTree.get_description(rep))
end
end