Sha256: caf3506935ec06774a83131047694e598445d61c67f9ecd74ff18d9922929fbc

Contents?: true

Size: 1.22 KB

Versions: 13

Compression:

Stored size: 1.22 KB

Contents

#
# Testing OpenWFE
#
# John Mettraux at openwfe.org
#
# Mon Oct  9 22:19:44 JST 2006
#

require 'flowtestbase'


class FlowTest0 < Test::Unit::TestCase
    include FlowTestBase

    #def setup
    #end

    #def teardown
    #end

    def test_print
        dotest(\
'''<process-definition name="n" revision="0">
    <print>ok</print>
</process-definition>''', "ok")
    end

    def test_dollar_notation_0
        dotest(\
'''<process-definition name="n" revision="0">
    <sequence>
        <set variable="x" value="y" />
        <print>${x} ${v:x}</print>
    </sequence>
</process-definition>''', 'y y')
    end

    def test_dollar_notation_1
        dotest(\
'''<process-definition name="n" revision="0">
    <sequence>
        <set field="x" value="y" />
        <print>${f:x} ${field:x}</print>
    </sequence>
</process-definition>''', 'y y')
    end

    def test_dollar_notation_2
        dotest(\
'''<process-definition name="n" revision="0">
    <sequence>
        <print>${f:x}X${field:x}</print>
    </sequence>
</process-definition>''', 'X')
    end

    def test_empty_pool
        dotest(\
'''<process-definition name="n" revision="0">
    <print>ok</print>
    <print>nok</print>
</process-definition>''', "ok")
    end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
openwferu-0.9.15 test/ft_0.rb
openwferu-0.9.10 test/ft_0.rb
openwferu-0.9.10.653 test/ft_0.rb
openwferu-0.9.11 test/ft_0.rb
openwferu-0.9.12 test/ft_0.rb
openwferu-0.9.12.863 test/ft_0.rb
openwferu-0.9.13 test/ft_0.rb
openwferu-0.9.14 test/ft_0.rb
openwferu-0.9.9 test/ft_0.rb
openwferu-0.9.5 test/ft_0.rb
openwferu-0.9.7 test/ft_0.rb
openwferu-0.9.8 test/ft_0.rb
openwferu-0.9.6 test/ft_0.rb