Kaydet (Commit) d9604fa1 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

add more debug output to see why windows has problems with sc's filters-test

üst cda653d7
......@@ -43,7 +43,10 @@
#include <editeng/justifyitem.hxx>
#include <basic/sbxdef.hxx>
#define CALC_DEBUG_OUTPUT 1
#include "helper/csv_handler.hxx"
#include "helper/debughelper.hxx"
#include "orcus/csv_parser.hpp"
#include <fstream>
#include <string>
......@@ -465,6 +468,26 @@ void ScFiltersTest::testFormats()
CPPUNIT_ASSERT_MESSAGE("Failed to load formats.*", xDocSh.Is());
ScDocument* pDoc = xDocSh->GetDocument();
SheetPrinter StringPrinter( 8, 3);
SheetPrinter ValuePrinter( 8, 3);
for (SCROW nRow = 0; nRow < 8; ++nRow)
{
for (SCCOL nCol = 0; nCol < 3; ++nCol)
{
String aString;
double aVal;
pDoc->GetValue(nCol, nRow, 0, aVal);
pDoc->GetString(nCol, nRow, 0, aString);
ValuePrinter.set(nRow, nCol, rtl::OUString::valueOf(aVal));
StringPrinter.set(nRow, nCol, aString);
}
}
ValuePrinter.print("Data sheet content: Value");
ValuePrinter.clear();
StringPrinter.print("Data sheet content: String");
StringPrinter.clear();
//output this just for debugging, should make it easier to see which local the numberformatter really used
//it helps to understand why some windows build fails in this test
LanguageType aLang, aCjkLang, aCtlLang;
......
......@@ -77,7 +77,7 @@ public:
maMatrix.set_string(row, col, new OUString(aStr));
}
#if UCALC_DEBUG_OUTPUT
#if CALC_DEBUG_OUTPUT
void print(const char* header) const
{
if (header)
......@@ -138,7 +138,7 @@ public:
*/
void printArray() const
{
#if UCALC_DEBUG_OUTPUT
#if CALC_DEBUG_OUTPUT
MatrixType::size_pair_type ns = maMatrix.size();
for (size_t row = 0; row < ns.first; ++row)
{
......
......@@ -71,7 +71,7 @@
#include <iostream>
#include <vector>
#define UCALC_DEBUG_OUTPUT 0
#define CALC_DEBUG_OUTPUT 0
#include "helper/debughelper.hxx"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment