Sign in
apache
/
groovy
/
4ce380cda5b437999726dfd041cb1b0781e91ec9
/
.
/
groovy
/
modules
/
classic
/
src
/
test
/
groovy
/
IfWithMethodCall.groovy
blob: ba2e4a39195a8d5de0ac7f5940bf0606e99a18e5 [
file
] [
log
] [
blame
]
class
IfWithMethodCallTest
extends
GroovyTestCase
{
void
testIfWithMethodCall
()
{
x
=
[
"foo"
,
"cheese"
]
if
(
x
.
contains
(
"cheese"
)
)
{
// ignore
}
else
{
assert
false
:
"x should contain cheese!"
}
}
}