Sign in
apache
/
groovy
/
refs/heads/GROOVY_2_1_X
/
.
/
src
/
test
/
groovy
/
SliceTest.groovy
blob: 6bc0d96aa4330f3c7e43739e620de736ef6e04b6 [
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
,
5
,
4
]
list
[
0
,
1
]
=
[
5
,
6
]
assert
list
==
[
5
,
6
,
5
,
4
]
}
}