|
Groovy example source code file (DollarEscapingTest.groovy)
The Groovy DollarEscapingTest.groovy source code
package groovy
class DollarEscapingTest extends GroovyTestCase {
void testEscaping() {
def foo = "hello \${foo}"
assert foo instanceof String
def c = foo.count('$')
assert c == 1 , foo
}
}
Other Groovy examples (source code examples)Here is a short list of links related to this Groovy DollarEscapingTest.groovy source code file: |
Other websites by Alvin Alexander:
Life/living in Alaska (OneMansAlaska.com)
How I Sold My Business (HowISoldMyBusiness.com)
Copyright 1998-2011 Alvin Alexander, devdaily.com
All Rights Reserved.