summaryrefslogtreecommitdiff
path: root/chart2/qa
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-09-08 04:06:25 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-09-08 04:06:25 +0200
commit1eb106b96964f950ed70ca48d841e7c3f6fc34e0 (patch)
tree02695cafa57458209228e75a8eb3853a2ef4b402 /chart2/qa
parent3bc5ca79f3ee033b5ebb65f61ea1a5740fbeb146 (diff)
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
Diffstat (limited to 'chart2/qa')
-rw-r--r--chart2/qa/unit/common_functor_test.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/chart2/qa/unit/common_functor_test.cxx b/chart2/qa/unit/common_functor_test.cxx
index ac4007c69866..34f444c50922 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);