#
# 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(
'
$i = 0
${r:$i}
$i = $i + 1
''',
$s)
end
def test_loop_1
dotest(
'
$i = 0
${r:$i}
$i = $i + 1
''',
$s)
end
def test_loop_2
#log_level_to_debug
dotest(
'
$i = 0
${r:$i}
$i = $i + 1
''',
$s)
end
def test_loop_3
dotest(
'
$i = 0
${r:$i}
$i = $i + 1
''',
$s)
end
def test_loop_4
dotest(
'
$i = 0
${r:$i}
$i = $i + 1
''',
$s)
end
def test_loop_5
log_level_to_debug
dotest(
'
$i = 0
$i = $i + 1
${r:$i}
''',
'1')
end
end