Sign in
apache
/
groovy
/
4ce380cda5b437999726dfd041cb1b0781e91ec9
/
.
/
groovy
/
modules
/
classic
/
src
/
test
/
groovy
/
ForLoopWithLocalVariablesTest.groovy
blob: e692b29a9af8abb80a35f51afac33580f6e3eb0b [
file
] [
log
] [
blame
]
/**
* Tests iterating with local variables
*/
class
ForLoopWithLocalVariablesTest
extends
GroovyTestCase
{
void
testForLoop
()
{
x
=
null
for
(
i
in
0.
.
9
)
{
x
=
i
}
assert
x
==
9
}
}