You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by di...@apache.org on 2007/10/28 11:49:20 UTC

svn commit: r589329 - /commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/JexlTest.java

Author: dion
Date: Sun Oct 28 03:49:19 2007
New Revision: 589329

URL: http://svn.apache.org/viewvc?rev=589329&view=rev
Log:
Add string quoting test for JEXL-16

Modified:
    commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/JexlTest.java

Modified: commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/JexlTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/JexlTest.java?rev=589329&r1=589328&r2=589329&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/JexlTest.java (original)
+++ commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/JexlTest.java Sun Oct 28 03:49:19 2007
@@ -416,6 +416,15 @@
         assertExpression(jc, "empty(foo)", Boolean.TRUE);
     }
 
+    /** 
+     * test quoting in strings 
+     */
+    public void testStringQuoting() throws Exception {
+        JexlContext jc = JexlHelper.createContext();
+        assertExpression(jc, "'\"Hello\"'", "\"Hello\"");
+        assertExpression(jc, "\"I'm testing\"", "I'm testing");
+    }
+    
     /**
       *  test some blank strings
       */