Skip to content

Commit 3115876

Browse files
committed
added test for the unsigned methods, though bit unsure that 0201 is right for readUnsignedShort, would have expected different to reading a signed short
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/io/trunk@140535 13f79535-47bb-0310-9956-ffa450edef68
1 parent 907c811 commit 3115876

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/test/org/apache/commons/io/input/SwappedDataInputStreamTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* effectively tests the underlying EndianUtils Stream methods.
3030
*
3131
* @author Henri Yandell (bayard at apache dot org)
32-
* @version $Revision: 1.7 $ $Date: 2004/02/23 05:02:25 $
32+
* @version $Revision: 1.8 $ $Date: 2004/02/29 21:58:47 $
3333
*/
3434

3535
public class SwappedDataInputStreamTest extends TestCase {
@@ -104,13 +104,13 @@ public void testReadShort() throws IOException {
104104
assertEquals( (short) 0x0201, this.sdis.readShort() );
105105
}
106106

107-
/*
108107
public void testReadUnsignedByte() throws IOException {
108+
assertEquals( 0x01, this.sdis.readUnsignedByte() );
109109
}
110110

111111
public void testReadUnsignedShort() throws IOException {
112+
assertEquals( (short) 0x0201, this.sdis.readUnsignedShort() );
112113
}
113-
*/
114114

115115
public void testReadUTF() throws IOException {
116116
try {

0 commit comments

Comments
 (0)