diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-01 16:07:52 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-01 18:56:07 +0200 |
commit | ff842adedb6621ff338defab3c9c4c1022ca8bdf (patch) | |
tree | f261499988125f405a7371b97a6f64278cd843a9 /sal/qa | |
parent | 0471dccf9c81b4851078033d286a215954c488ed (diff) |
Add unit test to catch eae24a9488814e77254d175c11fc4a138c1dbd30
Change-Id: I18b98f4be3212199004a1bb8fd8725fe71254ec4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122870
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sal/qa')
-rw-r--r-- | sal/qa/rtl/math/test-rtl-math.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sal/qa/rtl/math/test-rtl-math.cxx b/sal/qa/rtl/math/test-rtl-math.cxx index 971b9d7a55d1..3067e11ac167 100644 --- a/sal/qa/rtl/math/test-rtl-math.cxx +++ b/sal/qa/rtl/math/test-rtl-math.cxx @@ -464,6 +464,11 @@ public: fVal = DBL_MAX; aRes = rtl::math::doubleToUString( fVal, rtl_math_StringFormat_Automatic, 2, '.', true); CPPUNIT_ASSERT_EQUAL( OUString("1.80E+308"), aRes); + + // Crashed after commit eae24a9488814e77254d175c11fc4a138c1dbd30 + fVal = 123456.789; + aRes = rtl::math::doubleToUString(fVal, rtl_math_StringFormat_E, 2, '.', false); + CPPUNIT_ASSERT_EQUAL(OUString("1.23E+005"), aRes); } void test_approx() { |