Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 36972 invoked from network); 19 Aug 2004 18:05:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Aug 2004 18:05:32 -0000 Received: (qmail 99695 invoked by uid 500); 19 Aug 2004 18:05:28 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 99596 invoked by uid 500); 19 Aug 2004 18:05:27 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 99583 invoked by uid 500); 19 Aug 2004 18:05:27 -0000 Received: (qmail 99579 invoked by uid 99); 19 Aug 2004 18:05:27 -0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Thu, 19 Aug 2004 11:05:27 -0700 Received: (qmail 36908 invoked by uid 1431); 19 Aug 2004 18:05:26 -0000 Date: 19 Aug 2004 18:05:26 -0000 Message-ID: <20040819180526.36907.qmail@minotaur.apache.org> From: dion@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/jexl/src/test/org/apache/commons/jexl JexlTest.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N dion 2004/08/19 11:05:26 Modified: jexl/src/test/org/apache/commons/jexl JexlTest.java Log: Add a test for the comment Revision Changes Path 1.43 +11 -3 jakarta-commons/jexl/src/test/org/apache/commons/jexl/JexlTest.java Index: JexlTest.java =================================================================== RCS file: /home/cvs/jakarta-commons/jexl/src/test/org/apache/commons/jexl/JexlTest.java,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- JexlTest.java 19 Aug 2004 17:35:47 -0000 1.42 +++ JexlTest.java 19 Aug 2004 18:05:26 -0000 1.43 @@ -1107,14 +1107,22 @@ { try { - JexlContext jc = JexlHelper.createContext(); - Expression e = ExpressionFactory.createExpression("empty()"); + assertExpression(JexlHelper.createContext(), "empty()", null); } catch (ParseException pe) { System.err.println("Expecting a parse exception: " + pe.getMessage()); } } + + /** + * Test the ## comment in a string + * @throws Exception + */ + public void testComment() throws Exception + { + assertExpression(JexlHelper.createContext(), "## double or nothing\n 1 + 1", Long.valueOf("2")); + } /** * Asserts that the given expression returns the given value when applied to the --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org