aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2010-11-09 15:02:31 +0000
committerYegor Kozlov <yegor@apache.org>2010-11-09 15:02:31 +0000
commit81a9293f1c5b007f6495c8cd64c741e4aa65200a (patch)
tree02a6b824daa98a001a3a217d1218e9120aa2de21 /src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java
parenta6cc5ed7078762d8856b766a56cfef74e6b1ebf5 (diff)
downloadpoi-81a9293f1c5b007f6495c8cd64c741e4aa65200a.tar.gz
poi-81a9293f1c5b007f6495c8cd64c741e4aa65200a.zip
Tolerate Double.NaN when reading .xls files, see Bugzilla 49761
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1033004 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java')
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java
index 76f53c9c37..a943f3aefb 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java
@@ -321,5 +321,10 @@ public final class TestHSSFCell extends BaseTestCell {
}
}
-
+ /**
+ * HSSF prior to version 3.7 had a bug: it could write a NaN but could not read such a file back.
+ */
+ public void testReadNaN() {
+ HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("49761.xls");
+ }
}