Sign in
apache
/
groovy
/
0b4cb8487bd3da9b9af5d15d0c5bc311b618ad96
/
.
/
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
}
}