# # Testing OpenWFE # # 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 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