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
ebc60c32
Kaydet (Commit)
ebc60c32
authored
Tem 09, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Unit test for string input with custom string handling policy.
Change-Id: I51e8fbe83e94ba66a0e2ef63aacf080ba0e50a9c
üst
99bd0d84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ucalc.cxx
sc/qa/unit/ucalc.cxx
+9
-0
No files found.
sc/qa/unit/ucalc.cxx
Dosyayı görüntüle @
ebc60c32
...
...
@@ -362,6 +362,15 @@ void Test::testInput()
bTest
=
test
==
"'apple'"
;
CPPUNIT_ASSERT_MESSAGE
(
"Text content should have retained the first apostrophe."
,
bTest
);
// Customized string handling policy.
ScSetStringParam
aParam
;
aParam
.
mbDetectNumberFormat
=
false
;
aParam
.
mbSetTextCellFormat
=
true
;
aParam
.
mbHandleApostrophe
=
false
;
m_pDoc
->
SetString
(
0
,
0
,
0
,
"000123"
,
&
aParam
);
m_pDoc
->
GetString
(
0
,
0
,
0
,
test
);
CPPUNIT_ASSERT_MESSAGE
(
"Text content should have been treated as string, not number."
,
test
==
"000123"
);
m_pDoc
->
DeleteTab
(
0
);
}
...
...
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