#
# testing ruote
#
# Fri Jul 31 09:50:13 JST 2009
#
require File.join(File.dirname(__FILE__), '..', 'test_helper.rb')
require 'ruote/reader/xml'
class XmlReaderTest < Test::Unit::TestCase
def test_sequence
tree = Ruote::XmlReader.read(%{
})
assert_equal(
["define", {"name"=>"nada"}, [
["sequence", {}, [["alpha", {}, []], ["bravo", {}, []]]]
]],
tree)
end
def test_echo
tree = Ruote::XmlReader.read(%{
la vida loca
})
assert_equal(
["process_definition", {"name"=>"nada"}, [["echo", {"la vida loca"=>nil}, []]]],
tree)
end
def test_concurrent_iterator
tree = Ruote::XmlReader.read(%{
})
assert_equal(
["process_definition", {"name"=>"nada"}, [
["concurrent_iterator", {"on_field"=>"toti", "to_field"=>"toto"}, []]]],
tree)
end
end