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
2f46c820
Kaydet (Commit)
2f46c820
authored
Kas 01, 2011
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
New unit test to test AND and OR evaluations of matrix objects.
This is in response to fdo#40967.
üst
30e4e8c2
Hide 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 @
2f46c820
...
...
@@ -640,6 +640,24 @@ void Test::testMatrix()
pMat
->
And
()
&&
pMat
->
Or
());
}
// Test the AND and OR evaluations.
for
(
int
i
=
0
;
i
<
2
;
++
i
)
{
pMat
=
new
ScMatrix
(
2
,
2
,
eDT
[
i
]);
// Only some of the elements are non-zero.
pMat
->
PutBoolean
(
true
,
0
,
0
);
pMat
->
PutDouble
(
1.0
,
1
,
1
);
CPPUNIT_ASSERT_MESSAGE
(
"incorrect OR result"
,
pMat
->
Or
());
CPPUNIT_ASSERT_MESSAGE
(
"incorrect AND result"
,
!
pMat
->
And
());
// All of the elements are non-zero.
pMat
->
PutBoolean
(
true
,
0
,
1
);
pMat
->
PutDouble
(
2.3
,
1
,
0
);
CPPUNIT_ASSERT_MESSAGE
(
"incorrect OR result"
,
pMat
->
Or
());
CPPUNIT_ASSERT_MESSAGE
(
"incorrect AND result"
,
pMat
->
And
());
}
// Now test the emtpy matrix types.
eDT
[
0
]
=
ScMatrix
::
FILLED_EMPTY
;
eDT
[
1
]
=
ScMatrix
::
SPARSE_EMPTY
;
...
...
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