Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
aa5683e1
Kaydet (Commit)
aa5683e1
authored
Agu 03, 2013
tarafından
Lionel Elie Mamane
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fixup SAL_INFO macros to actually print the strings
Change-Id: I26bf8376d27f7fcbf8a83b7356d252dce9061fcb
üst
68a4d1f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
test_converter.cxx
sax/qa/cppunit/test_converter.cxx
+10
-10
No files found.
sax/qa/cppunit/test_converter.cxx
Dosyayı görüntüle @
aa5683e1
...
...
@@ -105,7 +105,7 @@ static void doTest(util::Duration const & rid, char const*const pis,
CPPUNIT_ASSERT
(
eqDuration
(
rid
,
od
));
OUStringBuffer
buf
;
Converter
::
convertDuration
(
buf
,
od
);
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
getStr
());
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
toString
());
CPPUNIT_ASSERT
(
buf
.
makeStringAndClear
().
equalsAscii
(
pos
));
}
...
...
@@ -174,7 +174,7 @@ static void doTest(util::DateTime const & rdt, char const*const pis,
CPPUNIT_ASSERT
(
eqDateTime
(
rdt
,
odt
));
OUStringBuffer
buf
;
Converter
::
convertDateTime
(
buf
,
odt
,
0
,
true
);
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
getStr
());
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
OUString
::
createFromAscii
(
pos
),
buf
.
makeStringAndClear
());
}
...
...
@@ -265,7 +265,7 @@ void doTestDouble(char const*const pis, double const rd,
CPPUNIT_ASSERT_DOUBLES_EQUAL
(
rd
,
od
,
0.00000001
);
OUStringBuffer
buf
;
Converter
::
convertDouble
(
buf
,
od
,
true
,
nTargetUnit
,
nSourceUnit
);
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
getStr
());
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
is
,
buf
.
makeStringAndClear
());
}
...
...
@@ -336,7 +336,7 @@ void doTestMeasureToString(char const*const pis, sal_Int32 nMeasure, sal_Int16 c
OUString
const
is
(
OUString
::
createFromAscii
(
pis
));
OUStringBuffer
buf
;
Converter
::
convertMeasure
(
buf
,
nMeasure
,
nSourceUnit
,
nTargetUnit
);
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
getStr
());
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
is
,
buf
.
makeStringAndClear
());
}
...
...
@@ -400,7 +400,7 @@ void doTestBoolToString(char const*const pis, bool bValue )
OUString
const
is
(
OUString
::
createFromAscii
(
pis
));
OUStringBuffer
buf
;
Converter
::
convertBool
(
buf
,
bValue
);
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
getStr
());
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
is
,
buf
.
makeStringAndClear
());
}
...
...
@@ -427,7 +427,7 @@ void doTestPercentToString(char const*const pis, sal_Int32 nValue)
OUString
const
is
(
OUString
::
createFromAscii
(
pis
));
OUStringBuffer
buf
;
Converter
::
convertPercent
(
buf
,
nValue
);
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
getStr
());
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
is
,
buf
.
makeStringAndClear
());
}
...
...
@@ -459,7 +459,7 @@ void doTestColorToString(char const*const pis, sal_Int32 nValue)
OUString
const
is
(
OUString
::
createFromAscii
(
pis
));
OUStringBuffer
buf
;
Converter
::
convertColor
(
buf
,
nValue
);
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
getStr
());
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
is
,
buf
.
makeStringAndClear
());
}
...
...
@@ -490,7 +490,7 @@ void doTestNumberToString(char const*const pis, sal_Int32 nValue)
OUString
const
is
(
OUString
::
createFromAscii
(
pis
));
OUStringBuffer
buf
;
Converter
::
convertNumber
(
buf
,
nValue
);
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
getStr
());
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
is
,
buf
.
makeStringAndClear
());
}
...
...
@@ -513,7 +513,7 @@ void doTestEncodeBase64(char const*const pis, const uno::Sequence<sal_Int8> aPas
OUString
const
is
(
OUString
::
createFromAscii
(
pis
));
OUStringBuffer
buf
;
Converter
::
encodeBase64
(
buf
,
aPass
);
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
getStr
());
SAL_INFO
(
"sax.cppunit"
,
""
<<
buf
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
is
,
buf
.
makeStringAndClear
());
}
...
...
@@ -522,7 +522,7 @@ void doTestDecodeBase64(const uno::Sequence<sal_Int8> aPass, char const*const pi
OUString
const
is
(
OUString
::
createFromAscii
(
pis
));
uno
::
Sequence
<
sal_Int8
>
tempSequence
;
Converter
::
decodeBase64
(
tempSequence
,
is
);
SAL_INFO
(
"sax.cppunit"
,
""
<<
is
.
getStr
()
);
SAL_INFO
(
"sax.cppunit"
,
""
<<
is
);
bool
b
=
(
tempSequence
==
aPass
);
CPPUNIT_ASSERT
(
b
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment