Sign in
apache
/
groovy
/
refs/tags/GROOVY_1_0
/
.
/
groovy-core
/
src
/
test
/
groovy
/
bugs
/
ZoharsBug.groovy
blob: de474ce5c2c3dc88d0720523cc48a3ea41c2aa8c [
file
] [
log
] [
blame
]
/**
* @author Zohar Melamed
* @version $Revision$
*/
class
ZoharsBug
extends
GroovyTestCase
{
void
testBug
()
{
def
values
=
[
1
,
2
,
3
,
4
]
def
result
=
bloo
(
values
,
{
it
>
1
})
assert
result
==
[
2
,
3
,
4
]
}
def
bloo
(
a
,
b
){
return
a
.
findAll
{
b
.
call
(
it
)}
}
}