commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r377635 - /jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java
Date Tue, 14 Feb 2006 06:03:55 GMT
Author: dion
Date: Mon Feb 13 22:03:54 2006
New Revision: 377635

URL: http://svn.apache.org/viewcvs?rev=377635&view=rev
Log:
Add tests for UnaryMinus on integer and float point numbers

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=377635&r1=377634&r2=377635&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 Mon Feb
13 22:03:54 2006
@@ -325,6 +325,18 @@
 
 
 
+   /**
+    *  test some simple mathematical calculations
+    */
+   public void testUnaryMinus()
+        throws Exception
+   {
+       JexlContext jc = JexlHelper.createContext();
+       assertExpression(jc, "-3", new Integer(-3));
+       assertExpression(jc, "-3.0", new Float("-3.0"));
+   }
+
+    
     /**
       *  test some simple mathematical calculations
       */



---------------------------------------------------------------------
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