Kaydet (Commit) 485dddac authored tarafından Kohei Yoshida's avatar Kohei Yoshida

fdo#77728: Write test for this.

Change-Id: I42d0cb7f99dce62e0ac5aa471b190ee7d3cf1efe
üst da8aa938
...@@ -1295,6 +1295,12 @@ void Test::testSharedFormulaUpdateOnNamedRangeChange() ...@@ -1295,6 +1295,12 @@ void Test::testSharedFormulaUpdateOnNamedRangeChange()
CPPUNIT_ASSERT_EQUAL(8.0, m_pDoc->GetValue(ScAddress(1,7,0))); CPPUNIT_ASSERT_EQUAL(8.0, m_pDoc->GetValue(ScAddress(1,7,0)));
CPPUNIT_ASSERT_EQUAL(2.5, m_pDoc->GetValue(ScAddress(2,0,0))); CPPUNIT_ASSERT_EQUAL(2.5, m_pDoc->GetValue(ScAddress(2,0,0)));
// Change the value of A4 and make sure the value change gets propagated.
m_pDoc->SetValue(ScAddress(0,3,0), 0.0);
CPPUNIT_ASSERT_EQUAL(6.0, m_pDoc->GetValue(ScAddress(1,0,0)));
CPPUNIT_ASSERT_EQUAL(6.0, m_pDoc->GetValue(ScAddress(1,1,0)));
CPPUNIT_ASSERT_EQUAL(6.0, m_pDoc->GetValue(ScAddress(1,2,0)));
m_pDoc->DeleteTab(0); m_pDoc->DeleteTab(0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment