Sha256: 5e50433f75f53d949a433bef3ba248c3dabf73fe90b8659dc74833ab8f6779a6

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

#
# Testing OpenWFEru
#
# John Mettraux at openwfe.org
#

require 'flowtestbase'
require 'openwfe/def'

include OpenWFE


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

    #def setup
    #end

    #def teardown
    #end


    #
    # Test 0
    #

    class TestCondition49a0 < ProcessDefinition
        sequence do
            _if :test => "false"
            _print "0 ${f:__result__}"
            _if :test => "true; false"
            _print "1 ${f:__result__}"
            _if :test => "false; true"
            _print "2 ${f:__result__}"
            _if :test => "print ''; true"
            _print "3 ${f:__result__}"
            _if :test => "begin print ''; end; true"
            _print "4 ${f:__result__}"

            _if :test => "true == "
            _print "5 ${f:__result__}"
            _if :test => " == true"
            _print "6 ${f:__result__}"
        end
    end

    #def xxxx_0
    def test_0

        dotest(
            TestCondition49a0,
            """
0 
1 
2 true
3 true
4 true
5 
6 
            """.strip,
            true)
    end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openwferu-0.9.10 test/ft_49_condition.rb
openwferu-0.9.10.653 test/ft_49_condition.rb