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 14:19:16 GMT
jstrachan    2002/10/10 07:19:16

  Modified:    jexl/src/test/org/apache/commons/jexl JexlTest.java
  Log:
  Added a few more test cases
  
  Revision  Changes    Path
  1.20      +5 -4      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.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- JexlTest.java	10 Oct 2002 13:51:36 -0000	1.19
  +++ JexlTest.java	10 Oct 2002 14:19:16 -0000	1.20
  @@ -871,12 +871,13 @@
   
           Foo foo = new Foo();
   
  -        jc.getVars().put("s", "abc");
  +        jc.getVars().put("foo", "abcdef");
   
  -        assertExpression(jc, "s.charAt(2)", new Character('b'));
  +        assertExpression(jc, "foo.substring(2,3)", "cd");
  +        assertExpression(jc, "foo.charAt(2)", new Character('b'));
        
           try {
  -            assertExpression(jc, "s.charAt(-2)", null);
  +            assertExpression(jc, "foo.charAt(-2)", null);
               fail("this test should have thrown an exception" );            
           }
           catch (IndexOutOfBoundsException e) {
  
  
  

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