You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ba...@apache.org on 2004/02/29 22:58:47 UTC

cvs commit: jakarta-commons/io/src/test/org/apache/commons/io/input SwappedDataInputStreamTest.java

bayard      2004/02/29 13:58:47

  Modified:    io/src/test/org/apache/commons/io/input
                        SwappedDataInputStreamTest.java
  Log:
  added test for the unsigned methods, though bit unsure that 0201 is right for readUnsignedShort, would have expected different to reading a signed short
  
  Revision  Changes    Path
  1.8       +3 -3      jakarta-commons/io/src/test/org/apache/commons/io/input/SwappedDataInputStreamTest.java
  
  Index: SwappedDataInputStreamTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/io/src/test/org/apache/commons/io/input/SwappedDataInputStreamTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- SwappedDataInputStreamTest.java	23 Feb 2004 05:02:25 -0000	1.7
  +++ SwappedDataInputStreamTest.java	29 Feb 2004 21:58:47 -0000	1.8
  @@ -104,13 +104,13 @@
           assertEquals( (short) 0x0201, this.sdis.readShort() );
       }
   
  -    /*
       public void testReadUnsignedByte() throws IOException {
  +        assertEquals( 0x01, this.sdis.readUnsignedByte() );
       }
   
       public void testReadUnsignedShort() throws IOException {
  +        assertEquals( (short) 0x0201, this.sdis.readUnsignedShort() );
       }
  -    */
   
       public void testReadUTF() throws IOException {
           try {
  
  
  

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