sc/qa/unit/data/xlsx/tdf161301.xlsx |binary sc/qa/unit/subsequent_filters_test2.cxx | 13 +++++++++++++ 2 files changed, 13 insertions(+)
New commits: commit 04954ffee19bb2357dca69f929ac660f99d80f16 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Mon Jun 3 15:26:12 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Jun 3 17:14:02 2024 +0200 tdf#161301: sc_subsequent_filters_test2: Add unittest Change-Id: I9eece5baa5c283caee74131151519c5e72e9cc45 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168376 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> Tested-by: Jenkins diff --git a/sc/qa/unit/data/xlsx/tdf161301.xlsx b/sc/qa/unit/data/xlsx/tdf161301.xlsx new file mode 100644 index 000000000000..599248390352 Binary files /dev/null and b/sc/qa/unit/data/xlsx/tdf161301.xlsx differ diff --git a/sc/qa/unit/subsequent_filters_test2.cxx b/sc/qa/unit/subsequent_filters_test2.cxx index 4968ef61ae59..74eea5b91efa 100644 --- a/sc/qa/unit/subsequent_filters_test2.cxx +++ b/sc/qa/unit/subsequent_filters_test2.cxx @@ -249,6 +249,19 @@ CPPUNIT_TEST_FIXTURE(ScFiltersTest2, testTdf153767) CPPUNIT_ASSERT_EQUAL(u"FALSE"_ustr, pDoc->GetString(ScAddress(7, 2, 0))); } +CPPUNIT_TEST_FIXTURE(ScFiltersTest2, testTdf161301) +{ + createScDoc("xlsx/tdf161301.xlsx"); + + ScDocument* pDoc = getScDoc(); + + // Without the fix in place, this test would have failed with + // - Expected: CE784年2月20日 + // - Actual : 45440 + CPPUNIT_ASSERT_EQUAL(u"CE784年2月20日"_ustr, pDoc->GetString(ScAddress(1, 0, 0))); + CPPUNIT_ASSERT_EQUAL(u"CE784年2月20日"_ustr, pDoc->GetString(ScAddress(1, 1, 0))); +} + CPPUNIT_TEST_FIXTURE(ScFiltersTest2, testTdf124454) { createScDoc("ods/tdf124454.ods");