bayard      2004/01/01 23:59:13

  Modified:    io/src/test/org/apache/commons/io/input
                        SwappedDataInputStreamTest.java
  Log:
  double and float tests succeed now
  
  Revision  Changes    Path
  1.4       +8 -10     
jakarta-commons-sandbox/io/src/test/org/apache/commons/io/input/SwappedDataInputStreamTest.java
  
  Index: SwappedDataInputStreamTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/io/src/test/org/apache/commons/io/input/SwappedDataInputStreamTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SwappedDataInputStreamTest.java   2 Jan 2004 07:52:57 -0000       1.3
  +++ SwappedDataInputStreamTest.java   2 Jan 2004 07:59:13 -0000       1.4
  @@ -116,15 +116,15 @@
           assertEquals( (char) 0x0201, this.sdis.readChar() );
       }
   
  -    /*
       public void testReadDouble() throws IOException {
  -        assertEquals( (double) 0x0807060504030201L, this.sdis.readDouble(), 0 );
  +        assertEquals( Double.longBitsToDouble(0x0807060504030201L), 
this.sdis.readDouble(), 0 );
       }
   
       public void testReadFloat() throws IOException {
  -        assertEquals( (float) 0x04030201F, this.sdis.readFloat(), 0 );
  +        assertEquals( Float.intBitsToFloat(0x04030201), this.sdis.readFloat(), 0 );
       }
   
  +    /*
       public void testReadFully() throws IOException {
       }
       */
  @@ -146,7 +146,7 @@
           assertEquals( (short) 0x0201, this.sdis.readShort() );
       }
   
  -/*
  +    /*
       public void testReadUnsignedByte() throws IOException {
       }
   
  @@ -164,9 +164,7 @@
   
       /*
       public void testSkipBytes() throws IOException {
  -        assertEquals( (float) 0x04030201, this.sdis.skipBytes() );
       }
  -
       */
   
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to