#
# Testing OpenWFE
#
# John Mettraux at openwfe.org
#
# Tue Jan 2 13:14:37 JST 2007
#
require 'flowtestbase'
$s = (0..9).to_a.join("\n").strip
class FlowTest10 < Test::Unit::TestCase
include FlowTestBase
#def setup
#end
#def teardown
#end
def test_loop_0
#log_level_to_debug
dotest(
'
sv("i", 0)
${i}
sv("i", lv("i") + 1)
''',
$s)
end
def test_loop_1
dotest(
'
0
${i}
sv("i", lv("i") + 1)
''',
$s)
end
def test_loop_2
#log_level_to_debug
dotest(
'
0
${i}
sv("i", lv("i") + 1)
''',
$s)
end
def _test_loop_3
dotest(
'
0
${i}
sv("i", lv("i") + 1)
''',
$s)
end
def test_loop_4
dotest(
'
0
${i}
sv("i", lv("i") + 1)
''',
$s)
end
def test_loop_5
#log_level_to_debug
# causes test to fail (logging X vs $SAFE level 3)
dotest(
'
0
sv("i", lv("i") + 1)
${i}
''',
'1')
end
end