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