You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2005/06/28 16:38:09 UTC
svn commit: r202209 -
/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java
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