[Libreoffice-commits] .: sc/qa

Kohei Yoshida kohei at kemper.freedesktop.org
Mon Nov 14 09:08:27 PST 2011


 sc/qa/unit/ucalc.cxx |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

New commits:
commit 51494ab7291ad97eca5acfe2d9a4943ddfb4800d
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date:   Mon Nov 14 12:07:48 2011 -0500

    Likewise, adjusted the test cases for MATCH to handle mixed comparisons.

diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 3faa208..b18bfe0 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -589,7 +589,7 @@ void testFuncMATCH(ScDocument* pDoc)
             "7",
             "8",
             "9",
-            "A",
+            "B",
             "B",
             "C",
         };
@@ -608,7 +608,7 @@ void testFuncMATCH(ScDocument* pDoc)
             { "9.59",     "9" },
             { "10",       "9" },
             { "100",      "9" },
-            { "Andy",    "10" },
+            { "Andy",  "#N/A" },
             { "Bruce",   "11" },
             { "Charlie", "12" }
         };
@@ -621,9 +621,9 @@ void testFuncMATCH(ScDocument* pDoc)
 
         // data range (A1:A9)
         const char* aData[] = {
+            "D",
             "C",
             "B",
-            "A",
             "9",
             "8",
             "7",
@@ -649,9 +649,10 @@ void testFuncMATCH(ScDocument* pDoc)
             { "0.8",     "12" },
             { "0",       "12" },
             { "-2",      "12" },
-            { "Andy",    "2" },
-            { "Bruce",   "1" },
-            { "Charlie", "#N/A" },
+            { "Andy",    "3" },
+            { "Bruce",   "2" },
+            { "Charlie", "1" },
+            { "David", "#N/A" }
         };
 
         runTestMATCH<SAL_N_ELEMENTS(aData),SAL_N_ELEMENTS(aChecks),-1>(pDoc, aData, aChecks);


More information about the Libreoffice-commits mailing list