commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r202209 - /jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java
Date Tue, 28 Jun 2005 14:38:09 GMT
Author: dion
Date: Tue Jun 28 07:38:09 2005
New Revision: 202209

URL: http://svn.apache.org/viewcvs?rev=202209&view=rev
Log:
Add calculation for Bug 31577

Modified:
    jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java

Modified: jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java?rev=202209&r1=202208&r2=202209&view=diff
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java (original)
+++ jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java Tue Jun
28 07:38:09 2005
@@ -368,6 +368,10 @@
         jc.getVars().put("imanull", null );
         assertExpression(jc, "imanull + 2", new Long(2));
         assertExpression(jc, "imanull + imanull", new Long(0));
+        
+        /* test for bugzilla 31577 */
+        jc.getVars().put("n", new Integer(0));
+        assertExpression(jc, "n != null && n != 0", Boolean.FALSE);
     }
 
     /**



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


Mime
View raw message