]> source.dussan.org Git - poi.git/commitdiff
Forgot to commit this before
authorGlen Stampoultzis <glens@apache.org>
Sun, 3 Mar 2002 09:31:58 +0000 (09:31 +0000)
committerGlen Stampoultzis <glens@apache.org>
Sun, 3 Mar 2002 09:31:58 +0000 (09:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352136 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/util/TestLittleEndian.java

index a6e576a20a01c9b4f542ef1d29e8c16e2172902a..1f2780d8978d2453cb9e8f2926cd4d1ae63c7aa6 100644 (file)
@@ -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)
     {