Sha256: 1fa40c18d9e0faf5a077db2285cdf00333f0f19292accfb03c1f8f3a9ae0dd50

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

#
# Testing OpenWFE
#
# John Mettraux at openwfe.org
#
# Mon Dec 11 09:49:18 JST 2006
# Narita terminal 1
#

require 'flowtestbase'


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

    #def setup
    #end

    #def teardown
    #end

    def test_lambda_0

        dotest(
'''<process-definition name="lambda_0" revision="0">
    <sequence>
        <set variable="inside1x">
            <process-definition>
                <print>bonjour ${name}</print>
            </process-definition>
        </set>

        <inside1x name="world" />
        <print>over</print>
    </sequence>
</process-definition>''', 
            "bonjour world\nover")
    end

    #
    # TEST 1

    class Test1 < OpenWFE::ProcessDefinition
        sequence do
            _set :v => "inside1r" do
                process_definition do
                    _print "hello ${name}"
                end
            end
            inside1r :name => "mundo"
            _print "done."
        end
    end

    def test_1

        #log_level_to_debug

        dotest(Test1, "hello mundo\ndone.")
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.18 test/ft_6_lambda.rb