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

Eike Rathke erack at redhat.com
Wed Aug 30 14:36:19 UTC 2017


 svl/qa/unit/svl.cxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 9540916d824521592c08fdbff5014a01dffca752
Author: Eike Rathke <erack at redhat.com>
Date:   Wed Aug 30 16:30:35 2017 +0200

    Unit tests for tdf#91758
    
    Change-Id: I4015a339ca18b214adca228b58319d897f0ad910

diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 2b6baaf90293..4cd89b0a95a4 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1097,7 +1097,11 @@ void Test::testIsNumberFormat()
         { "Jan1", false },
         { "Jan1 2000", true },
         { "Jan 1", true },
-        { "Jan 1 2000", true}
+        { "Jan 1 2000", true },
+        { "5-12-14", false },
+        { "005-12-14", true },
+        { "15-10-30", true },
+        { "2015-10-30", true }
     };
 
     for (size_t i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
@@ -1106,7 +1110,7 @@ void Test::testIsNumberFormat()
         double nNumber = 0;
         OUString aString = OUString::createFromAscii(aTests[i].pFormat);
         bool bIsNumber = aFormatter.IsNumberFormat(aString, nIndex, nNumber);
-        CPPUNIT_ASSERT_EQUAL(aTests[i].bIsNumber, bIsNumber);
+        CPPUNIT_ASSERT_EQUAL_MESSAGE(aTests[i].pFormat, aTests[i].bIsNumber, bIsNumber);
 
     }
 


More information about the Libreoffice-commits mailing list