# # Testing OpenWFE # # John Mettraux at openwfe.org # # Tue Jan 2 13:14:37 JST 2007 # require 'openwfe/def' require 'flowtestbase' class FlowTest9 < Test::Unit::TestCase include FlowTestBase #def setup #end #def teardown #end def test_cursor_0 dotest( ' a b ''', """a b""") end def test_cursor_1 dotest( ' a b c ''', """a b""") end def test_cursor_2 dotest( ' a b c ''', """a b""") end def test_cursor_2b # # ZigZag test # dotest( ' a b c ''', """a b c""") end def test_cursor_3 dotest( ' a b c ''', """a c""") end def test_cursor_4 dotest( ' a b c d ''', """a c d""") end def test_cursor_5 dotest( ' a 2 b c ''', """a c""") end class TestCursor6 < OpenWFE::ProcessDefinition cursor do _print "a" skip "2" _print "b" _print "c" skip 2 _print "d" end end def test_cursor_6 dotest(TestCursor6, "a\nc") end end