Skip to content
This repository has been archived by the owner on Jun 26, 2019. It is now read-only.

Commit

Permalink
Fixing usage of EndianSwitchableOutputStream
Browse files Browse the repository at this point in the history
  • Loading branch information
emopers authored and Wajihulhassan committed Mar 7, 2016
1 parent 1dc11f8 commit 7a4f297
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public void testWriteLEUnsignedShort() throws IOException {
EndianSwitchableOutputStream output = new EndianSwitchableOutputStream(rawOutput, ByteOrder.LITTLE_ENDIAN);
output.writeShort(unsigned);
output.writeChar(testChar);
output.flush();

EndianSwitchableInputStream input = new EndianSwitchableInputStream(new ByteArrayInputStream(rawOutput.toByteArray()), ByteOrder.LITTLE_ENDIAN);
assertEquals(unsigned, input.readUnsignedShort());
Expand Down

0 comments on commit 7a4f297

Please sign in to comment.