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
3ed834ae
Kaydet (Commit)
3ed834ae
authored
Eyl 14, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Unit test for ScRangeList. For now it's very basic. May expand later.
Change-Id: Ib7454253df250ddc991aed0dd5cd5b0f90476dd8
üst
0cc52217
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
ucalc.cxx
sc/qa/unit/ucalc.cxx
+18
-0
No files found.
sc/qa/unit/ucalc.cxx
Dosyayı görüntüle @
3ed834ae
...
@@ -108,6 +108,7 @@ public:
...
@@ -108,6 +108,7 @@ public:
virtual
void
tearDown
();
virtual
void
tearDown
();
void
testCollator
();
void
testCollator
();
void
testRangeList
();
void
testInput
();
void
testInput
();
void
testCellFunctions
();
void
testCellFunctions
();
...
@@ -226,6 +227,7 @@ public:
...
@@ -226,6 +227,7 @@ public:
CPPUNIT_TEST_SUITE
(
Test
);
CPPUNIT_TEST_SUITE
(
Test
);
CPPUNIT_TEST
(
testCollator
);
CPPUNIT_TEST
(
testCollator
);
CPPUNIT_TEST
(
testRangeList
);
CPPUNIT_TEST
(
testInput
);
CPPUNIT_TEST
(
testInput
);
CPPUNIT_TEST
(
testCellFunctions
);
CPPUNIT_TEST
(
testCellFunctions
);
CPPUNIT_TEST
(
testSheetsFunc
);
CPPUNIT_TEST
(
testSheetsFunc
);
...
@@ -357,6 +359,22 @@ void Test::testCollator()
...
@@ -357,6 +359,22 @@ void Test::testCollator()
CPPUNIT_ASSERT_MESSAGE
(
"these strings are supposed to be different!"
,
nRes
!=
0
);
CPPUNIT_ASSERT_MESSAGE
(
"these strings are supposed to be different!"
,
nRes
!=
0
);
}
}
void
Test
::
testRangeList
()
{
m_pDoc
->
InsertTab
(
0
,
"foo"
);
ScRangeList
aRL
;
aRL
.
Append
(
ScRange
(
1
,
1
,
0
,
3
,
10
,
0
));
CPPUNIT_ASSERT_MESSAGE
(
"List should have one range."
,
aRL
.
size
()
==
1
);
const
ScRange
*
p
=
aRL
[
0
];
CPPUNIT_ASSERT_MESSAGE
(
"Failed to get the range object."
,
p
);
CPPUNIT_ASSERT_MESSAGE
(
"Wrong range."
,
p
->
aStart
==
ScAddress
(
1
,
1
,
0
)
&&
p
->
aEnd
==
ScAddress
(
3
,
10
,
0
));
// TODO: Add more tests here.
m_pDoc
->
DeleteTab
(
0
);
}
void
Test
::
testInput
()
void
Test
::
testInput
()
{
{
rtl
::
OUString
aTabName
(
"foo"
);
rtl
::
OUString
aTabName
(
"foo"
);
...
...
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