aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/testcases/org/apache/poi/util/TestLittleEndian.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/util/TestLittleEndian.java b/src/testcases/org/apache/poi/util/TestLittleEndian.java
index a6e576a20a..1f2780d897 100644
--- a/src/testcases/org/apache/poi/util/TestLittleEndian.java
+++ b/src/testcases/org/apache/poi/util/TestLittleEndian.java
@@ -414,6 +414,12 @@ public class TestLittleEndian
}
}
+ public void testUnsignedByteToInt()
+ throws Exception
+ {
+ assertEquals(255, LittleEndian.ubyteToInt((byte)255));
+ }
+
private boolean ba_equivalent(byte [] received, byte [] expected,
int offset, int size)
{