Sign in
apache
/
groovy
/
refs/tags/GROOVY_1_0
/
.
/
groovy-core
/
src
/
test
/
groovy
/
ForLoopWithLocalVariablesTest.groovy
blob: 680fa7963496126a08b1e4da4d8047843a799d32 [
file
] [
log
] [
blame
]
/**
* Tests iterating with local variables
*/
class
ForLoopWithLocalVariablesTest
extends
GroovyTestCase
{
void
testForLoop
()
{
def
x
=
null
for
(
i
in
0.
.
9
)
{
x
=
i
}
assert
x
==
9
}
}