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
67fccad9
Kaydet (Commit)
67fccad9
authored
Haz 24, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
clang-analyzer-deadcode.DeadStores
Change-Id: Idb7996e9063955dbb8126243670bdc30bd8dd97a
üst
88cd9dd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test-rtl-math.cxx
sal/qa/rtl/math/test-rtl-math.cxx
+4
-4
No files found.
sal/qa/rtl/math/test-rtl-math.cxx
Dosyayı görüntüle @
67fccad9
...
...
@@ -155,7 +155,7 @@ public:
CPPUNIT_ASSERT_EQUAL
(
-
1.0
,
res
);
rtl
::
math
::
setNan
(
&
x
);
res
=
rtl
::
math
::
erf
(
x
);
CPPUNIT_ASSERT_EQUAL
(
true
,
rtl
::
math
::
isNan
(
x
));
CPPUNIT_ASSERT_EQUAL
(
true
,
rtl
::
math
::
isNan
(
res
));
x
=
3.0
;
res
=
rtl
::
math
::
erf
(
-
x
);
CPPUNIT_ASSERT_DOUBLES_EQUAL
(
-
rtl
::
math
::
erf
(
x
),
res
,
1E-12
);
...
...
@@ -174,7 +174,7 @@ public:
CPPUNIT_ASSERT_EQUAL
(
2.0
,
res
);
rtl
::
math
::
setNan
(
&
x
);
res
=
rtl
::
math
::
erfc
(
x
);
CPPUNIT_ASSERT_EQUAL
(
true
,
rtl
::
math
::
isNan
(
x
));
CPPUNIT_ASSERT_EQUAL
(
true
,
rtl
::
math
::
isNan
(
res
));
x
=
3.0
;
res
=
rtl
::
math
::
erfc
(
-
x
);
CPPUNIT_ASSERT_DOUBLES_EQUAL
(
2.0
-
rtl
::
math
::
erfc
(
x
),
res
,
1E-12
);
...
...
@@ -197,7 +197,7 @@ public:
CPPUNIT_ASSERT_EQUAL
(
-
1.0
,
res
);
rtl
::
math
::
setNan
(
&
x
);
res
=
rtl
::
math
::
expm1
(
x
);
CPPUNIT_ASSERT_EQUAL
(
true
,
rtl
::
math
::
isNan
(
x
));
CPPUNIT_ASSERT_EQUAL
(
true
,
rtl
::
math
::
isNan
(
res
));
}
void
test_log1p
()
{
...
...
@@ -223,7 +223,7 @@ public:
CPPUNIT_ASSERT_EQUAL
(
true
,
rtl
::
math
::
isNan
(
res
));
rtl
::
math
::
setNan
(
&
x
);
res
=
rtl
::
math
::
log1p
(
x
);
CPPUNIT_ASSERT_EQUAL
(
true
,
rtl
::
math
::
isNan
(
x
));
CPPUNIT_ASSERT_EQUAL
(
true
,
rtl
::
math
::
isNan
(
res
));
}
CPPUNIT_TEST_SUITE
(
Test
);
...
...
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