diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-06-08 23:39:47 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-06-08 23:39:47 -0400 |
commit | 8a45e3e6dd93ba6873e2908805bf5646445a908d (patch) | |
tree | 5d4825386a7cb09b62325bd61dd912d253ff52cf /sc/qa | |
parent | 32934392a0e8d97b7d28dbecd77b79b3b5640a77 (diff) |
Let's not use fractional numbers in a string input.
This test fails in locales where the decimal separator is not '.'.
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index 47b812ad8714..e22b6a3c3312 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -466,9 +466,9 @@ void Test::testCellFunctions() m_pDoc->SetString(1, 7, 0, OUString(RTL_CONSTASCII_USTRINGPARAM("=N(0)"))); m_pDoc->SetString(1, 8, 0, OUString(RTL_CONSTASCII_USTRINGPARAM("=N(1)"))); m_pDoc->SetString(1, 9, 0, OUString(RTL_CONSTASCII_USTRINGPARAM("=N(-1)"))); - m_pDoc->SetString(1, 10, 0, OUString(RTL_CONSTASCII_USTRINGPARAM("=N(12.3)"))); + m_pDoc->SetString(1, 10, 0, OUString(RTL_CONSTASCII_USTRINGPARAM("=N(123)"))); m_pDoc->SetString(1, 11, 0, OUString(RTL_CONSTASCII_USTRINGPARAM("=N(\"\")"))); - m_pDoc->SetString(1, 12, 0, OUString(RTL_CONSTASCII_USTRINGPARAM("=N(\"1.2\")"))); + m_pDoc->SetString(1, 12, 0, OUString(RTL_CONSTASCII_USTRINGPARAM("=N(\"12\")"))); m_pDoc->SetString(1, 13, 0, OUString(RTL_CONSTASCII_USTRINGPARAM("=N(\"foo\")"))); // Range references @@ -481,7 +481,7 @@ void Test::testCellFunctions() m_pDoc->CalcAll(); double checks[] = { 0, 0, 0, 1, -1, 12.3, 0, // cell reference - 0, 1, -1, 12.3, 0, 0, 0, // in-line values + 0, 1, -1, 123, 0, 0, 0, // in-line values 0, 1, 12.3, 0 // range references }; for (size_t i = 0; i < SAL_N_ELEMENTS(checks); ++i) |