Sign in
apache
/
groovy
/
refs/tags/GROOVY_1_1_BETA_3
/
.
/
groovy-core
/
src
/
test
/
groovy
/
SliceTest.groovy
blob: 680930750101cfb1af946b71eec477c4c495d43a [
file
] [
log
] [
blame
]
package
groovy
class
SliceTest
extends
GroovyTestCase
{
void
testListSlice
()
{
def
list
=
[
1
,
2
,
3
,
4
]
list
[
1
,
2
]
=
5
assert
list
==
[
1
,
5
,
4
]
list
[
0
,
1
]
=
[
5
,
6
,
7
,
8
,
9
]
assert
list
==
[
5
,
6
,
7
,
8
,
9
,
4
]
}
}