You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2014/01/18 22:33:21 UTC

svn commit: r1559424 - /tomcat/trunk/test/org/apache/jasper/compiler/TestELParser.java

Author: markt
Date: Sat Jan 18 21:33:21 2014
New Revision: 1559424

URL: http://svn.apache.org/r1559424
Log:
Add the test case from bug 56031 as it suggested there may be further issues - there were not

Modified:
    tomcat/trunk/test/org/apache/jasper/compiler/TestELParser.java

Modified: tomcat/trunk/test/org/apache/jasper/compiler/TestELParser.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/jasper/compiler/TestELParser.java?rev=1559424&r1=1559423&r2=1559424&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/jasper/compiler/TestELParser.java (original)
+++ tomcat/trunk/test/org/apache/jasper/compiler/TestELParser.java Sat Jan 18 21:33:21 2014
@@ -127,6 +127,10 @@ public class TestELParser {
         doTestParser(" $ { do:it( a eq 1 ? true : false, y ) } ");
     }
 
+    @Test
+    public void testTernaryBug56031() throws JasperException {
+        doTestParser("${my:link(!empty registration ? registration : '/test/registration')}");
+    }
 
     private void doTestParser(String input) throws JasperException {
         Nodes nodes = ELParser.parse(input, false);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org