svl/qa/unit/svl.cxx |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit ef6c78dd53eb0097960a59141694bc141eabb1e9
Author:     Mike Kaganski <[email protected]>
AuthorDate: Sun Sep 21 18:39:40 2025 +0500
Commit:     Miklos Vajna <[email protected]>
CommitDate: Mon Oct 6 09:07:06 2025 +0200

    Add a test that checks parsing of fractions of a second
    
    Playing with commit 634c512c90891dfb8dd98b80aebb5b1d9d245681 (Simplify
    and speed up ImpSvNumberInputScan::StringToDouble, 2025-09-21), and
    making deliberate errors, I didn't see a unit test catching that.
    
    Change-Id: If6ca079dec3e8fa6d518017c3ecae1917d35bf5d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191292
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>
    (cherry picked from commit 4d75a89eee4d8369e84002143eefb2a782fae2c5)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191304
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Miklos Vajna <[email protected]>

diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index e2969c996d75..1091cefb8de6 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1374,6 +1374,17 @@ void Test::testIsNumberFormatSpecific()
 
         checkSpecificNumberFormats( aFormatter, aIO, "[de-AT] date January 
month names");
     }
+
+    {
+        // Test date and time elements
+        SvNumberFormatter aFormatter(m_xContext, LANGUAGE_ENGLISH_US);
+
+        std::vector<FormatInputOutput> aIO = {
+            { "2025-09-21 13:14:15.16", true, "2025-09-21 13:14:15.160", 0 },
+        };
+
+        checkSpecificNumberFormats(aFormatter, aIO, "[en-US] datetime");
+    }
 }
 
 void Test::testUserDefinedNumberFormats()

Reply via email to