#
# Testing OpenWFEru
#
# John Mettraux at openwfe.org
#
# Mon Oct 9 22:19:44 JST 2006
#
require 'flowtestbase'
class FlowTest1 < FlowTestBase
#def setup
#end
#def teardown
#end
def test_unset_0
dotest(\
'''
set ${x} ${v:x}
unset ${x} ${v:x}
''', 'set y y
unset')
end
def test_unset_1
dotest(\
'''
set ${f:x}
unset ${field:x}
''', 'set y
unset')
end
def test_unset_2
dotest(\
'''
set ${x}
unset ${x}
''', 'set y
unset y')
end
def test_unset_3
dotest(\
'''
set ${x}
unset ${x}
''', 'set y
unset')
end
def test_unset_4
dotest(\
'''
set ${x}
unset ${x}
''', 'set y
unset')
end
def test_unset_5
dotest(\
'''
set ${x}
unset ${x}
''', 'set y
unset y')
end
def test_unset_6
dotest(\
'''
set ${x}
unset ${x}
''', 'set y
unset')
end
def test_set_a0
dotest(\
'''
y
${x}
''', 'y')
end
def test_set_a1
dotest(\
'''
${x}
''', 'true')
end
def test_set_a1f
dotest(\
'''
${x}
''', 'false')
end
end