test/fei_test.rb in openwferu-0.9.16 vs test/fei_test.rb in openwferu-0.9.17

- old
+ new

@@ -149,9 +149,25 @@ assert_equal s1, fei0.to_s assert_equal s1, fei1.to_s end + def test_web_s + + s1 = "(fei 0.9.16 eng http://test/test.xml test 1.0 123456 do-test 0.0)" + fei1 = OpenWFE::FlowExpressionId.from_s s1 + + assert_equal( + [ "123456", "0.0" ], + OpenWFE::FlowExpressionId.split_web_s(fei1.to_web_s)) + end + + def test_from_h + + fei = new_fei() + assert_equal fei, OpenWFE::FlowExpressionId.from_h(fei.to_h) + end + protected def puts_hash (h) puts h.each do |k, v|