test/fei_test.rb in openwferu-0.9.15 vs test/fei_test.rb in openwferu-0.9.16
- old
+ new
@@ -130,18 +130,27 @@
assert \
fei.parent_workflow_instance_id == "123456",
"failure 1"
end
- #def test_to_fei
- # fei = new_fei
- # wi = OpenWFE::InFlowItem.new
- # wi.last_expression_id = fei
- # assert_nil OpenWFE::to_fei(nil)
- # assert_equal fei, OpenWFE::to_fei(fei)
- # assert_equal fei, OpenWFE::to_fei(wi)
- # assert_equal fei, OpenWFE::to_fei(fei.to_s)
- #end
+ def test_initial_engine_id_deprecation
+
+ s0 = "(fei 0.9.16 this/that http://test/test.xml test 1.0 123456 do-test 0.0)"
+ s1 = "(fei 0.9.16 this http://test/test.xml test 1.0 123456 do-test 0.0)"
+
+ fei0 = OpenWFE::FlowExpressionId.from_s s0
+ fei1 = OpenWFE::FlowExpressionId.from_s s1
+
+ assert_equal fei0, fei1
+
+ fei0 = OpenWFE::FlowExpressionId.to_fei s0
+ fei1 = OpenWFE::FlowExpressionId.to_fei s1
+
+ assert_equal fei0, fei1
+
+ assert_equal s1, fei0.to_s
+ assert_equal s1, fei1.to_s
+ end
protected
def puts_hash (h)
puts