From: Josh Micich Date: Tue, 2 Dec 2008 00:01:21 +0000 (+0000) Subject: (bug 46156) fix junit error after c722284 X-Git-Tag: REL_3_5_BETA5~73 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e8a4df9090d9d18c644897128c8e3c95bc7121f6;p=poi.git (bug 46156) fix junit error after c722284 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@722298 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/testcases/org/apache/poi/util/TestLittleEndian.java b/src/testcases/org/apache/poi/util/TestLittleEndian.java index bba8a653e3..4313e34991 100644 --- a/src/testcases/org/apache/poi/util/TestLittleEndian.java +++ b/src/testcases/org/apache/poi/util/TestLittleEndian.java @@ -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