[Libreoffice-commits] core.git: sal/qa
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 30 07:58:32 UTC 2021
sal/qa/rtl/math/test-rtl-math.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 23e50bc96b3244975543f9d1ffbc3610f0ac7313
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Thu Sep 30 09:13:27 2021 +0200
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Thu Sep 30 09:57:59 2021 +0200
Add a test for a negative integer
Change-Id: I368123ce4ffdfb0e5c47e80cf4fece0c6ddc5f9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122854
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/sal/qa/rtl/math/test-rtl-math.cxx b/sal/qa/rtl/math/test-rtl-math.cxx
index f6ab314fbd21..971b9d7a55d1 100644
--- a/sal/qa/rtl/math/test-rtl-math.cxx
+++ b/sal/qa/rtl/math/test-rtl-math.cxx
@@ -351,6 +351,12 @@ public:
2, '.');
CPPUNIT_ASSERT_EQUAL( OUString("4503599627370496.00"), aRes);
+ fVal = -4503599627370496.0;
+ aRes = rtl::math::doubleToUString( fVal,
+ rtl_math_StringFormat_Automatic,
+ 2, '.');
+ CPPUNIT_ASSERT_EQUAL( OUString("-4503599627370496.00"), aRes);
+
fVal = 9007199254740991.0; // (2^53)-1
aRes = rtl::math::doubleToUString( fVal,
rtl_math_StringFormat_Automatic,
More information about the Libreoffice-commits
mailing list