From 0f541df81f03a3df391b8be6486b96ee601268b6 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 5 Sep 2011 13:07:10 +0200 Subject: [PATCH] test range names in import test --- sc/qa/unit/data/ods/named-ranges-global.ods | Bin 7925 -> 8166 bytes sc/qa/unit/filters-test.cxx | 30 +++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/sc/qa/unit/data/ods/named-ranges-global.ods b/sc/qa/unit/data/ods/named-ranges-global.ods index 9d23d32091a85a82b50a1697765637458c6b0b9e..0c1af78a7fae8df046887c7ef451cada1256a8a3 100644 GIT binary patch literal 8166 zcmeG>c|26>`(s~H2)S7DZ0~d4^K3_7hm4#V0H6i{Ca&@+`9WoZg#Z8m z@ghtCoE@AYXm|t!# zJwe}R+@KCHCj}mRG#Vib1iHGq3b~32!I5@A5g8d7;NB|F4^cMYKk*P4BynR@YA9g%sa8Vw`ed`j{P?X4ZUX>%#4k_8_Fq9@75WcTFHRggwCQ1Z^;|CJ2v4u(Qdiei7m{xSU>*A4=M5SSATbjiUQ3Awy?N`YcR z61G+mQ)x*nNpbE&i&h9E+z|ps18pUxrG+8;wme|;o$;Rs9fc<7jzT+tx%X_2 z23bQPf?zlXhF0Ja<@r7dhCm5V>ie9C_>W1rHBrp|v@j1)QU1rdk^TOh_wW7`wKx6! zwWX$}-g5zl-8MU%> zdX_>wqWE_$>>pNEeOTvD{aN5y$=DH^wz1hlS=s(ap4+QE;2aietqA%D^Op7YB(7~w zZ;J@$W-Ro>AH1qHsh3VRq!M6FtRlo)kf#?M2B`6l{$B+-^D8qH$V9lJp`xF z%O~0nayi#wBcsjLH(IJp&yAU9ob(^DEUgT%2DyZVhBlW6;z4Oc>n40AjOwO)(*CxVwRho2#_s=6+5cl%M9V=UF6lDvE`+Ya5N zb?l7$TFcB%;TPwyb>~KlQVJ<2+L~>N;0b$|Ak4{tKjdA-EVcQ>NgjYM2FypvhbW7A z=>;8oKg{7NU1v%93`VmXLiUHj_0)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++ b/sc/qa/unit/filters-test.cxx @@ -59,6 +59,8 @@ const int indeterminate = 2; +#define ODS_FORMAT_TYPE 50331943 + using namespace ::com::sun::star; /* Implementation of Filters test */ @@ -194,9 +196,35 @@ void FiltersTest::testODSs() rtl::OUString aString2 = m_aSrcRoot + rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/sc/qa/unit/data/ods/named-ranges-global.ods")); - ScDocShellRef xDocSh = load( aString1, aString2 , rtl::OUString(), 50331943); + ScDocShellRef xDocSh = load( aString1, aString2 , rtl::OUString(), ODS_FORMAT_TYPE); CPPUNIT_ASSERT_MESSAGE("Failed to load named-ranges-global.ods.", xDocSh.Is()); + + ScDocument* pDoc = xDocSh->GetDocument(); + //check one range data per sheet and one global more detailed + //add some more checks here + ScRangeData* pRangeData = pDoc->GetRangeName()->findByName(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Global1"))); + CPPUNIT_ASSERT_MESSAGE("range name Global1 not found", pRangeData); + double aValue; + pDoc->GetValue(1,0,0,aValue); + CPPUNIT_ASSERT_MESSAGE("range name Global1 should reference Sheet1.A1", aValue == 1); + pRangeData = pDoc->GetRangeName(0)->findByName(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Local1"))); + CPPUNIT_ASSERT_MESSAGE("range name Sheet1.Local1 not found", pRangeData); + pDoc->GetValue(1,2,0,aValue); + CPPUNIT_ASSERT_MESSAGE("range name Sheet1.Local1 should reference Sheet1.A3", aValue == 3); + pRangeData = pDoc->GetRangeName(1)->findByName(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Local2"))); + CPPUNIT_ASSERT_MESSAGE("range name Sheet2.Local2 not found", pRangeData); + pDoc->GetValue(1,1,1,aValue); + CPPUNIT_ASSERT_MESSAGE("range name Sheet2.Local2 should reference Sheet2.A2", aValue == 7); + //check for correct results for the remaining formulas + pDoc->GetValue(1,1,0, aValue); + CPPUNIT_ASSERT_MESSAGE("=global2 should be 2", aValue == 2); + pDoc->GetValue(1,3,0, aValue); + CPPUNIT_ASSERT_MESSAGE("=local2 should be 4", aValue == 4); + pDoc->GetValue(2,0,0, aValue); + CPPUNIT_ASSERT_MESSAGE("=SUM(global3) should be 10", aValue == 10); + pDoc->GetValue(1,0,1,aValue); + CPPUNIT_ASSERT_MESSAGE("range name Sheet2.local1 should reference Sheet1.A5", aValue == 5); } FiltersTest::FiltersTest()