Kaydet (Commit) 5f23f94c authored tarafından Eike Rathke's avatar Eike Rathke

Unit test tdf#116324

Change-Id: Ib1f0f8fe2308c075477903d4f981046a939d4b79
üst 8930f8f5
......@@ -4432,6 +4432,13 @@ void Test::testFuncIF()
// Result must be 16, only the first row matches all criteria.
CPPUNIT_ASSERT_EQUAL(16.0, m_pDoc->GetValue(ScAddress(3,3,0)));
// A11:B11
// Test nested IF in array/matrix if the nested IF has no Else path.
m_pDoc->InsertMatrixFormula(0,10, 1,10, aMark, "=IF(IF({1;0};12);34;56)");
// Results must be 34 and 56.
CPPUNIT_ASSERT_EQUAL(34.0, m_pDoc->GetValue(ScAddress(0,10,0)));
CPPUNIT_ASSERT_EQUAL(56.0, m_pDoc->GetValue(ScAddress(1,10,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