Index: src/test/groovy/text/TemplateTest.java =================================================================== RCS file: /scm/cvspublic/groovy/groovy-core/src/test/groovy/text/TemplateTest.java,v retrieving revision 1.5 diff -b -u -r1.5 TemplateTest.java --- src/test/groovy/text/TemplateTest.java 9 Mar 2004 10:16:33 -0000 1.5 +++ src/test/groovy/text/TemplateTest.java 16 Apr 2004 15:27:18 -0000 @@ -59,4 +59,15 @@ template.setBinding(binding); assertEquals("pullarapullara", template.toString()); } + + public void testQuotes() throws SyntaxException, ClassNotFoundException, IOException { + Map binding = new HashMap(); + binding.put("hello", "world"); + + String source = "\"this\" is tricky: ${hello + \" \" + hello}"; + Template template = new SimpleTemplateEngine().createTemplate(source); + template.setBinding(binding); + + assertEquals("\"this\" is tricky: world world", template.toString()); + } }