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
51ac50b5
Kaydet (Commit)
51ac50b5
authored
Eki 23, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix and enable CppunitTest_comphelper_syntaxhighlight_test
Change-Id: I2b2aa5f5afdbf58ec3ac2447db370bcb7d1778c0
üst
7a06928b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Module_comphelper.mk
comphelper/Module_comphelper.mk
+1
-0
syntaxhighlighttest.cxx
comphelper/qa/unit/syntaxhighlighttest.cxx
+4
-4
No files found.
comphelper/Module_comphelper.mk
Dosyayı görüntüle @
51ac50b5
...
@@ -28,6 +28,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,comphelper,\
...
@@ -28,6 +28,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,comphelper,\
))
))
$(eval $(call gb_Module_add_check_targets,comphelper,\
$(eval $(call gb_Module_add_check_targets,comphelper,\
CppunitTest_comphelper_syntaxhighlight_test \
CppunitTest_comphelper_test \
CppunitTest_comphelper_test \
))
))
...
...
comphelper/qa/unit/syntaxhighlighttest.cxx
Dosyayı görüntüle @
51ac50b5
...
@@ -36,14 +36,14 @@ void SyntaxHighlightTest::testBasicString()
...
@@ -36,14 +36,14 @@ void SyntaxHighlightTest::testBasicString()
std
::
vector
<
HighlightPortion
>
aPortions
;
std
::
vector
<
HighlightPortion
>
aPortions
;
aHighlighter
.
getHighlightPortions
(
0
,
aBasicString
,
aPortions
);
aHighlighter
.
getHighlightPortions
(
0
,
aBasicString
,
aPortions
);
sal_Int32
prevEnd
=
0
;
// check that all strings are valid
for
(
std
::
vector
<
HighlightPortion
>::
const_iterator
itr
=
for
(
std
::
vector
<
HighlightPortion
>::
const_iterator
itr
=
aPortions
.
begin
(),
itrEnd
=
aPortions
.
end
();
itr
!=
itrEnd
;
++
itr
)
aPortions
.
begin
(),
itrEnd
=
aPortions
.
end
();
itr
!=
itrEnd
;
++
itr
)
{
{
CPPUNIT_ASSERT
(
itr
->
nBegin
<
aBasicString
.
getLength
()
);
CPPUNIT_ASSERT
_EQUAL
(
prevEnd
,
itr
->
nBegin
);
//CPPUNIT_ASSERT(itr->nEnd < aBasicString.getLength())
;
prevEnd
=
itr
->
nEnd
;
}
}
CPPUNIT_ASSERT_EQUAL
(
aBasicString
.
getLength
(),
prevEnd
);
}
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
SyntaxHighlightTest
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
SyntaxHighlightTest
);
...
...
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