test/raw_prog_test.rb in openwferu-0.9.13 vs test/raw_prog_test.rb in openwferu-0.9.14
- old
+ new
@@ -358,19 +358,27 @@
CODE_DEF7 = """
process_definition :name => 'TestDefinitionSeven', :revision => '0' do
participant :ref => 'toto'
end""".strip
+ A_DEF7 = [
+ "process-definition",
+ {"name"=>"TestDefinitionSeven", "revision"=>"0"},
+ [
+ ["participant", {"ref"=>"toto"}, []]
+ ]
+ ]
+
def test_prog_7
#puts
#puts TestDefinition7.do_make.to_s
#puts
#puts TestDefinition7.do_make.to_code_s
- assert \
- TestDefinitionSeven.do_make.to_code_s == CODE_DEF7,
- "to_code_s() not working properly (7)"
+ assert_equal TestDefinitionSeven.do_make.to_code_s, CODE_DEF7
+
+ assert_equal TestDefinitionSeven.do_make.to_a, A_DEF7
end
#
# TEST 8
#