Sha256: b3e0754bab95918bfea20b34ea9bdee899f8df80f7a39012fd443fb983679f9f

Contents?: true

Size: 756 Bytes

Versions: 1

Compression:

Stored size: 756 Bytes

Contents

#
# Testing OpenWFE
#
# John Mettraux at openwfe.org
#
# Tue Jan  2 13:14:37 JST 2007
#

require 'flowtestbase'


class FlowTest10 < FlowTestBase

    #def setup
    #end

    #def teardown
    #end

    def test_loop_0

        s = ""
        0.upto(9) do |i|
            s << i.to_s
            s << "\n"
        end
        s = s.strip()

        dotest(\
'<process-definition name="'+test_name+'''" revision="0">
    <sequence>
        <reval>$i = 0</reval>
        <loop>
            <print>${r:$i}</print>
            <reval>$i = $i + 1</reval>
            <if>
                <equals value="${r:$i}" other-value="10" />
                <break/>
            </if>
        </loop>
    </sequence>
</process-definition>''', 
        s)
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openwferu-0.9.2 test/ft_10_loop.rb