]> source.dussan.org Git - poi.git/commitdiff
(bug 46156) fix junit error after c722284
authorJosh Micich <josh@apache.org>
Tue, 2 Dec 2008 00:01:21 +0000 (00:01 +0000)
committerJosh Micich <josh@apache.org>
Tue, 2 Dec 2008 00:01:21 +0000 (00:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@722298 13f79535-47bb-0310-9956-ffa450edef68

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

index bba8a653e36dd701ee7d34b380b28203b5a8704e..4313e34991fd7d242589a9de4e433c02d1561a55 100644 (file)
@@ -84,10 +84,8 @@ public final class TestLittleEndian extends TestCase {
     {
         56, 50, -113, -4, -63, -64, -13, 63, 76, -32, -42, -35, 60, -43, 3, 64
     };
-    private static final byte[]   _nan_double_array =
-    {
-        (byte)0x00, (byte)0x00, (byte)0x3C, (byte)0x00, (byte)0x20, (byte)0x04, (byte)0xFF, (byte)0xFF
-    };
+       /** 0x7ff8000000000000 encoded in little endian order */
+       private static final byte[] _nan_double_array = HexRead.readFromString("00 00 00 00 00 00 F8 7F");
     private static final double[] _doubles      =
     {
         1.23456, 2.47912, Double.NaN