# # 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 xxxx_unset_0 def test_unset_0 dotest( ''' set ${x} ${v:x} unset ${x} ${v:x} '''.strip, "set y y\nunset", true) end #def xxxx_unset_1 def test_unset_2 dotest(\ ''' set ${f:x} unset ${field:x} ''', 'set y unset') end #def xxxx_unset_2 def test_unset_2 dotest(\ ''' set ${x} unset ${x} ''', 'set y unset y') end #def xxxx_unset_3 def test_unset_3 dotest( ''' set ${x} unset ${x} '''.strip, "set y\nunset", true) end #def xxxx_unset_4 def test_unset_4 dotest( ''' set ${x} unset ${x} '''.strip, "set y\nunset", true) end #def xxxx_unset_5 def test_unset_5 dotest( ''' set ${x} unset ${x} ''', 'set y unset y') end #def xxxx_set_a0 def test_set_a0 dotest(\ ''' y ${x} ''', 'y') end #def xxxx_set_a1 def test_set_a1 dotest(\ ''' ${x} ''', 'true') end #def xxxx_set_a1f def test_set_a1f dotest(\ ''' ${x} ''', 'false') end #def xxxx_set_with_nested_string_0 def test_set_with_nested_string_0 dotest(\ ''' ${r:"1234".reverse} ${x} ''', '4321') end #def xxxx_set_with_nested_string_1 def test_set_with_nested_string_1 dotest(\ ''' ${r:"1234".reverse} ${f:x} ''', '4321') end end