diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-17 18:01:47 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-17 18:01:59 +0200 |
commit | 7bbd58eafc3146abcefc73d2d1ca6869bb47ef5a (patch) | |
tree | 09a1462b64ebbc64d8773c903c23a6dbb0d6fd7d /sal/qa/rtl/math | |
parent | 2ed29702ab29240e8e68c9c0f168a551d17f79f6 (diff) |
fdo#70319 "exponent followed by at least on digit" also for special case 0.0
Change-Id: I07e7917417b8a22cf6d64f2b7a447f9084b9fa2d
Diffstat (limited to 'sal/qa/rtl/math')
-rw-r--r-- | sal/qa/rtl/math/test-rtl-math.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sal/qa/rtl/math/test-rtl-math.cxx b/sal/qa/rtl/math/test-rtl-math.cxx index 3ebdb157d463..c0ccaaae5225 100644 --- a/sal/qa/rtl/math/test-rtl-math.cxx +++ b/sal/qa/rtl/math/test-rtl-math.cxx @@ -81,6 +81,12 @@ public: CPPUNIT_ASSERT_EQUAL(rtl_math_ConversionStatus_Ok, status); CPPUNIT_ASSERT_EQUAL(sal_Int32(RTL_CONSTASCII_LENGTH("1")), end); CPPUNIT_ASSERT_EQUAL(1.0, res); + res = rtl::math::stringToDouble( + rtl::OUString("0e"), + sal_Unicode('.'), sal_Unicode(','), &status, &end); + CPPUNIT_ASSERT_EQUAL(rtl_math_ConversionStatus_Ok, status); + CPPUNIT_ASSERT_EQUAL(sal_Int32(RTL_CONSTASCII_LENGTH("1")), end); + CPPUNIT_ASSERT_EQUAL(0.0, res); } CPPUNIT_TEST_SUITE(Test); |