commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jexl/src/test/org/apache/commons/jexl JexlTest.java
Date Thu, 10 Oct 2002 10:40:58 GMT
jstrachan    2002/10/10 03:40:58

  Modified:    jexl/src/test/org/apache/commons/jexl JexlTest.java
  Log:
  Added a few more test cases (that fail!) to demonstrate the .size() bug in Jexl.
  
  Revision  Changes    Path
  1.17      +14 -1     jakarta-commons-sandbox/jexl/src/test/org/apache/commons/jexl/JexlTest.java
  
  Index: JexlTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jexl/src/test/org/apache/commons/jexl/JexlTest.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- JexlTest.java	19 Aug 2002 22:41:10 -0000	1.16
  +++ JexlTest.java	10 Oct 2002 10:40:58 -0000	1.17
  @@ -447,6 +447,19 @@
           e = ExpressionFactory.createExpression("size(list)");
           o = e.evaluate(jc);
           assertTrue("4 : o incorrect", o.equals(new Integer(5)));
  +        
  +        
  +        e = ExpressionFactory.createExpression("list.size()");
  +        o = e.evaluate(jc);
  +        assertTrue("4 : o incorrect", o.equals(new Integer(5)));
  +
  +        e = ExpressionFactory.createExpression("map.size()");
  +        o = e.evaluate(jc);
  +        assertTrue("4 : o incorrect", o.equals(new Integer(5)));
  +        
  +        e = ExpressionFactory.createExpression("array.length");
  +        o = e.evaluate(jc);
  +        assertTrue("4 : o incorrect", o.equals(new Integer(5)));
       }
   
   
  
  
  

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


Mime
View raw message