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