#
# Testing OpenWFEru
#
# John Mettraux at openwfe.org
#
# Mon Oct 9 22:19:44 JST 2006
#
require 'flowtestbase'
class FlowTest3 < FlowTestBase
#def setup
#end
#def teardown
#end
def test_equals_0
dotest(\
'''
${field:__result__}
''', "true")
end
def test_equals_1
dotest(\
'''
${field:__result__}
''', "false")
end
def test_if_0
dotest(\
'''
ok
''', "ok")
end
def test_if_1
dotest(\
'''
ok
nok
''', "ok")
end
def test_if_2
dotest(\
'''
nok
''', "")
end
def test_if_3
dotest(\
'''
nok
ok
''', "ok")
end
end