sc/qa/unit/ucalc.cxx |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

New commits:
commit e96956e82c5b792ad9c6a2a2f2b0406488be4de0
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Mon Jan 15 12:29:52 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Jan 15 21:40:47 2024 +0100

    tdf#159148: sc_ucalc: Add unittest
    
    Change-Id: I748529b2a35fdfcac52fe33ecd39006471ed8e76
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162086
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 370f2d1f5c80..e300b4b5ccbb 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -3691,6 +3691,20 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf76836)
     m_pDoc->DeleteTab(0);
 }
 
+CPPUNIT_TEST_FIXTURE(Test, testTdf151752)
+{
+    m_pDoc->InsertTab(0, "Test");
+
+    m_pDoc->SetString(ScAddress(0,0,0), "66000:00");
+
+    // Without the fix in place, this test would have failed with
+    // - Expected: 66000:00:00
+    // - Actual  : 464:00:00
+    CPPUNIT_ASSERT_EQUAL(OUString("66000:00:00"), 
m_pDoc->GetString(ScAddress(0,0,0)));
+
+    m_pDoc->DeleteTab(0);
+}
+
 CPPUNIT_TEST_FIXTURE(Test, testTdf142186)
 {
     m_pDoc->InsertTab(0, "Test");

Reply via email to