[Libreoffice-commits] core.git: chart2/qa

Markus Mohrhard markus.mohrhard at googlemail.com
Mon Sep 7 19:07:20 PDT 2015


 chart2/qa/unit/common_functor_test.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 1eb106b96964f950ed70ca48d841e7c3f6fc34e0
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Tue Sep 8 04:06:25 2015 +0200

    improve test case
    
    Actually I just need it to force a rebuild of the file on the windows
    boxes to fix the broken build.
    
    Change-Id: Id90f0ef40bd9bc8dcde3dc0a9040100267696d0e

diff --git a/chart2/qa/unit/common_functor_test.cxx b/chart2/qa/unit/common_functor_test.cxx
index ac4007c..34f444c 100644
--- a/chart2/qa/unit/common_functor_test.cxx
+++ b/chart2/qa/unit/common_functor_test.cxx
@@ -43,6 +43,7 @@ void CommonFunctorsTest::testAnyToString()
     aInput.push_back(css::uno::makeAny(15.0));
     aInput.push_back(css::uno::makeAny(25.234));
     aInput.push_back(css::uno::makeAny(123.456));
+    aInput.push_back(css::uno::makeAny(0.123450));
 
     std::vector<OUString> aOutput;
     std::transform(aInput.begin(), aInput.end(),
@@ -54,6 +55,7 @@ void CommonFunctorsTest::testAnyToString()
     CPPUNIT_ASSERT_EQUAL(OUString("15"), aOutput[3]);
     CPPUNIT_ASSERT_EQUAL(OUString("25.234"), aOutput[4]);
     CPPUNIT_ASSERT_EQUAL(OUString("123.456"), aOutput[5]);
+    CPPUNIT_ASSERT_EQUAL(OUString("0.12345"), aOutput[6]);
 }
 
 void CommonFunctorsTest::testDoubleToString()
@@ -65,6 +67,7 @@ void CommonFunctorsTest::testDoubleToString()
     aInput.push_back(15.0);
     aInput.push_back(25.234);
     aInput.push_back(123.456);
+    aInput.push_back(0.123450);
 
     std::vector<OUString> aOutput;
     std::transform(aInput.begin(), aInput.end(),
@@ -76,6 +79,7 @@ void CommonFunctorsTest::testDoubleToString()
     CPPUNIT_ASSERT_EQUAL(OUString("15"), aOutput[3]);
     CPPUNIT_ASSERT_EQUAL(OUString("25.234"), aOutput[4]);
     CPPUNIT_ASSERT_EQUAL(OUString("123.456"), aOutput[5]);
+    CPPUNIT_ASSERT_EQUAL(OUString("0.12345"), aOutput[6]);
 }
 
 CPPUNIT_TEST_SUITE_REGISTRATION(CommonFunctorsTest);


More information about the Libreoffice-commits mailing list