commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang CharRangeTest.java
Date Mon, 04 Aug 2003 00:46:47 GMT
scolebourne    2003/08/03 17:46:47

  Modified:    lang/src/test/org/apache/commons/lang CharRangeTest.java
  Log:
  Add additional constructor to complete the set
  
  Revision  Changes    Path
  1.2       +17 -2     jakarta-commons/lang/src/test/org/apache/commons/lang/CharRangeTest.java
  
  Index: CharRangeTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/CharRangeTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CharRangeTest.java	2 Aug 2003 18:18:33 -0000	1.1
  +++ CharRangeTest.java	4 Aug 2003 00:46:47 -0000	1.2
  @@ -99,11 +99,26 @@
       //-----------------------------------------------------------------------
       public void testConstructorAccessors_Char() {
           CharRange rangea = new CharRange('a');
  -        CharRange rangeb = new CharRange('b');
           assertEquals('a', rangea.getStart());
           assertEquals('a', rangea.getEnd());
           assertEquals(false, rangea.isNegated());
           assertEquals("a", rangea.toString());
  +    }
  +    
  +    public void testConstructorAccessors_CharBoolean_Normal() {
  +        CharRange rangea = new CharRange('a');
  +        assertEquals('a', rangea.getStart());
  +        assertEquals('a', rangea.getEnd());
  +        assertEquals(false, rangea.isNegated());
  +        assertEquals("a", rangea.toString());
  +    }
  +    
  +    public void testConstructorAccessors_CharBoolean_Negated() {
  +        CharRange rangea = new CharRange('a', true);
  +        assertEquals('a', rangea.getStart());
  +        assertEquals('a', rangea.getEnd());
  +        assertEquals(true, rangea.isNegated());
  +        assertEquals("^a", rangea.toString());
       }
       
       public void testConstructorAccessors_CharChar_Same() {
  
  
  

Mime
View raw message