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

New commits:
commit 2386279c4f0d91dc0758157578ecf62ae9e1ceaa
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Wed Mar 15 10:54:23 2023 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Mar 15 15:48:11 2023 +0000

    tdf#117037: svl_qa_cppunit: Add unittest
    
    Change-Id: I707f1a5402189a2453f5d11beb4e1c493699e28b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148909
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index a64abd5fa89f..557c9be639e6 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1173,14 +1173,15 @@ void Test::testIsNumberFormat()
         { "1999-11-23 12:34:56,789", false },   // comma not in en-US if 'T' 
separator is not present,
                                                 // debatable, 'T' "may be 
omitted by mutual consent of those
                                                 // interchanging data, if 
ambiguity can be avoided."
-        { "1999-11-23T12:34:56/789", false }
+        { "1999-11-23T12:34:56/789", false },
+        { "−1000", true } // unicode minus
     };
 
     for (size_t i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
     {
         sal_uInt32 nIndex = 0;
         double nNumber = 0;
-        OUString aString = OUString::createFromAscii(aTests[i].pFormat);
+        OUString aString = OUString::fromUtf8(aTests[i].pFormat);
         bool bIsNumber = aFormatter.IsNumberFormat(aString, nIndex, nNumber);
         CPPUNIT_ASSERT_EQUAL_MESSAGE(aTests[i].pFormat, aTests[i].bIsNumber, 
bIsNumber);
 

Reply via email to