commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwaldh...@apache.org
Subject cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections/primitives TestArrayByteList.java TestByteList.java
Date Wed, 16 Apr 2003 18:38:10 GMT
rwaldhoff    2003/04/16 11:38:09

  Modified:    collections/src/test/org/apache/commons/collections/primitives
                        TestArrayByteList.java TestByteList.java
  Log:
  fix minor cut-and-paste issue (needless cast to float)
  
  Revision  Changes    Path
  1.2       +8 -8      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayByteList.java
  
  Index: TestArrayByteList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayByteList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestArrayByteList.java	15 Apr 2003 01:55:22 -0000	1.1
  +++ TestArrayByteList.java	16 Apr 2003 18:38:09 -0000	1.2
  @@ -135,7 +135,7 @@
           for (int i = 0; i < 1000; i++) {
               byte value = ((byte) (Byte.MAX_VALUE));
               value -= i;
  -            assertEquals(value, list.get(i), 0f);
  +            assertEquals(value, list.get(i));
           }
       }
   
  @@ -186,13 +186,13 @@
               }
               
               for(int i=0;i<10;i++) {
  -                assertEquals((byte)i,list.get(i), 0f);
  +                assertEquals((byte)i,list.get(i));
               }
               
               list.trimToSize();
       
               for(int i=0;i<10;i++) {
  -                assertEquals((byte)i,list.get(i), 0f);
  +                assertEquals((byte)i,list.get(i));
               }
       
               for(int i=0;i<10;i+=2) {
  @@ -200,19 +200,19 @@
               }
               
               for(int i=0;i<5;i++) {
  -                assertEquals((byte)(2*i)+1,list.get(i), 0f);
  +                assertEquals((byte)(2*i)+1,list.get(i));
               }
       
               list.trimToSize();
                       
               for(int i=0;i<5;i++) {
  -                assertEquals((byte)(2*i)+1,list.get(i), 0f);
  +                assertEquals((byte)(2*i)+1,list.get(i));
               }
   
               list.trimToSize();
                       
               for(int i=0;i<5;i++) {
  -                assertEquals((byte)(2*i)+1,list.get(i), 0f);
  +                assertEquals((byte)(2*i)+1,list.get(i));
               }
       
               list.clear();
  
  
  
  1.2       +10 -10    jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestByteList.java
  
  Index: TestByteList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestByteList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestByteList.java	15 Apr 2003 01:55:22 -0000	1.1
  +++ TestByteList.java	16 Apr 2003 18:38:09 -0000	1.2
  @@ -146,7 +146,7 @@
           assertSame(dest,list.toArray(dest));
           int i=0;
           for(ByteIterator iter = list.iterator(); iter.hasNext();i++) {
  -            assertEquals(iter.next(),dest[i], 0f);
  +            assertEquals(iter.next(),dest[i]);
           }
       }
       
  @@ -159,10 +159,10 @@
           assertSame(dest,list.toArray(dest));
           int i=0;
           for(ByteIterator iter = list.iterator(); iter.hasNext();i++) {
  -            assertEquals(iter.next(),dest[i], 0f);
  +            assertEquals(iter.next(),dest[i]);
           }
           for(;i<dest.length;i++) {
  -            assertEquals(Byte.MAX_VALUE,dest[i], 0f);
  +            assertEquals(Byte.MAX_VALUE,dest[i]);
           }
       }
       
  @@ -173,7 +173,7 @@
           assertTrue(dest != dest2);
           int i=0;
           for(ByteIterator iter = list.iterator(); iter.hasNext();i++) {
  -            assertEquals(iter.next(),dest2[i], 0f);
  +            assertEquals(iter.next(),dest2[i]);
           }
       }
       
  @@ -289,7 +289,7 @@
           for(int i = 0; i < 50; i++) {
               assertEquals(100-i,list.size());
               assertEquals(50-i,sub.size());
  -            assertEquals((byte)(25+i),sub.removeElementAt(0), 0f);
  +            assertEquals((byte)(25+i),sub.removeElementAt(0));
               assertEquals(50-i-1,sub.size());
               assertEquals(100-i-1,list.size());
           }
  @@ -303,7 +303,7 @@
               list.add((byte)i);
           }
           for (int i = 0; i < 255; i++) {
  -            assertEquals((byte)i, list.get(i), 0f);
  +            assertEquals((byte)i, list.get(i));
           }
       }
   
  @@ -315,11 +315,11 @@
           list.add((byte)4);
           list.add(1, (byte)2);
           for(int i = 0; i < 4; i++) {
  -            assertEquals("Should get entry back", (byte)(i + 1), list.get(i), 0f);
  +            assertEquals("Should get entry back", (byte)(i + 1), list.get(i));
           }
           list.add(0, (byte)0);
           for (int i = 0; i < 5; i++) {
  -            assertEquals("Should get entry back", (byte)i, list.get(i), 0f);
  +            assertEquals("Should get entry back", (byte)i, list.get(i));
           }
       }
   
  
  
  

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


Mime
View raw message