Sign in
apache
/
groovy
/
refs/tags/GROOVY_1_1_BETA_3
/
.
/
groovy-core
/
src
/
test
/
groovy
/
DollarEscapingTest.groovy
blob: 6b11cd67680029ca4172df3df32cffc977d4faf0 [
file
] [
log
] [
blame
]
package
groovy
class
DollarEscapingTest
extends
GroovyTestCase
{
void
testEscaping
()
{
def
foo
=
"hello \${foo}"
assert
foo
instanceof
String
def
c
=
foo
.
count
(
'$'
)
assert
c
==
1
,
foo
}
}