You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by js...@apache.org on 2002/10/10 12:40:58 UTC
cvs commit: jakarta-commons-sandbox/jexl/src/test/org/apache/commons/jexl JexlTest.java
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>