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
49e5d3f0
Kaydet (Commit)
49e5d3f0
authored
Şub 21, 2012
tarafından
Korrawit Pruegsanusak
Kaydeden (comit)
Michael Meeks
Şub 21, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add unit test for B2DRange's fround
üst
57d95b35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
basegfx2d.cxx
basegfx/test/basegfx2d.cxx
+29
-0
No files found.
basegfx/test/basegfx2d.cxx
Dosyayı görüntüle @
49e5d3f0
...
...
@@ -49,6 +49,7 @@
#include <basegfx/range/b1drange.hxx>
#include <basegfx/range/b1irange.hxx>
#include <basegfx/range/b1ibox.hxx>
#include <basegfx/range/b2drange.hxx>
#include <basegfx/range/b2dpolyrange.hxx>
#include <basegfx/numeric/ftools.hxx>
#include <basegfx/color/bcolor.hxx>
...
...
@@ -286,6 +287,33 @@ public:
SAL_CPPUNIT_TEST_SUITE_END
();
};
// class b2dsvgdimpex
class
b2drange
:
public
CppUnit
::
TestFixture
{
private
:
public
:
void
setUp
()
{
}
void
tearDown
()
{
}
void
check
()
{
CPPUNIT_ASSERT_MESSAGE
(
"simple range rounding from double to integer"
,
fround
(
B2DRange
(
1.2
,
2.3
,
3.5
,
4.8
))
==
B2IRange
(
1
,
2
,
4
,
5
));
}
// Change the following lines only, if you add, remove or rename
// member functions of the current class,
// because these macros are need by auto register mechanism.
SAL_CPPUNIT_TEST_SUITE
(
b2drange
);
CPPUNIT_TEST
(
check
);
SAL_CPPUNIT_TEST_SUITE_END
();
};
class
b2dpolyrange
:
public
CppUnit
::
TestFixture
{
private
:
...
...
@@ -1361,6 +1389,7 @@ public:
// -----------------------------------------------------------------------------
CPPUNIT_TEST_SUITE_REGISTRATION
(
basegfx2d
::
b2dsvgdimpex
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
basegfx2d
::
b2drange
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
basegfx2d
::
b2dpolyrange
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
basegfx2d
::
b2dhommatrix
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
basegfx2d
::
b2dpoint
);
...
...
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