[Libreoffice-commits] core.git: sc/qa
Kohei Yoshida
kohei.yoshida at gmail.com
Fri Aug 2 14:42:38 PDT 2013
sc/qa/unit/data/ods/basic-cell-content.ods |binary
sc/qa/unit/subsequent_filters-test.cxx | 7 +++++++
2 files changed, 7 insertions(+)
New commits:
commit 6ed555d9889982f95b0846a451c95c9abd54c498
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Fri Aug 2 17:42:15 2013 -0400
Ensure that we import a value of 0 correctly.
Change-Id: I1ada3cf4a162bc4a85ce4e6d2cd0c13adf3156e6
diff --git a/sc/qa/unit/data/ods/basic-cell-content.ods b/sc/qa/unit/data/ods/basic-cell-content.ods
index 70f6b6e..2b8c8bc 100644
Binary files a/sc/qa/unit/data/ods/basic-cell-content.ods and b/sc/qa/unit/data/ods/basic-cell-content.ods differ
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 61e3682..36ae617 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -46,6 +46,7 @@
#include "scitems.hxx"
#include "docsh.hxx"
#include "editutil.hxx"
+#include "cellvalue.hxx"
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#include <com/sun/star/drawing/XControlShape.hpp>
@@ -278,6 +279,12 @@ void ScFiltersTest::testBasicCellContentODS()
aStr = pDoc->GetString(1, 3, 0); // B4
CPPUNIT_ASSERT_EQUAL(OUString("A < B"), aStr);
+ // Numeric value of 0.
+ ScRefCellValue aCell;
+ aCell.assign(*pDoc, ScAddress(1,4,0)); // B5
+ CPPUNIT_ASSERT_MESSAGE("This cell must be numeric.", aCell.meType == CELLTYPE_VALUE);
+ CPPUNIT_ASSERT_EQUAL(0.0, aCell.mfValue);
+
xDocSh->DoClose();
}
More information about the Libreoffice-commits
mailing list