# # Testing OpenWFE # # John Mettraux at openwfe.org # # Mon Oct 9 22:19:44 JST 2006 # require 'flowtestbase' class FlowTest1 < Test::Unit::TestCase include FlowTestBase #def setup #end #def teardown #end def test_unset_0 dotest( ''' set ${x} ${v:x} unset ${x} ${v:x} '''.strip, "set y y\nunset") #true) end def test_unset_2 dotest( ''' set ${f:x} unset ${field:x} ''', "set y\nunset") end def test_unset_2 dotest( ''' set ${x} unset ${x} ''', "set y\nunset y") end def test_unset_3 dotest( ''' set ${x} unset ${x} '''.strip, "set y\nunset") #true) end def test_unset_4 dotest( ''' set ${x} unset ${x} '''.strip, "set y\nunset") #true) end def test_unset_5 dotest( ''' set ${x} unset ${x} ''', "set y\nunset y") 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 def test_set_with_nested_string_0 dotest( ''' ${r:"1234".reverse} ${x} ''', '4321') end def test_set_with_nested_string_1 dotest( ''' ${r:"1234".reverse} ${f:x} ''', '4321') end end