Sign in
apache
/
groovy
/
refs/tags/GROOVY_1_0
/
.
/
groovy-core
/
src
/
test
/
groovy
/
IfWithMethodCallTest.groovy
blob: 873a140c980573e4d4b27ae8a1f3221d8ede8d24 [
file
] [
log
] [
blame
]
class
IfWithMethodCallTest
extends
GroovyTestCase
{
void
testIfWithMethodCall
()
{
def
x
=
[
"foo"
,
"cheese"
]
if
(
x
.
contains
(
"cheese"
)
)
{
// ignore
}
else
{
assert
false
,
"x should contain cheese!"
}
}
}