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

Unit test for string input with custom string handling policy.

Change-Id: I51e8fbe83e94ba66a0e2ef63aacf080ba0e50a9c
üst 99bd0d84
......@@ -362,6 +362,15 @@ void Test::testInput()
bTest = test == "'apple'";
CPPUNIT_ASSERT_MESSAGE("Text content should have retained the first apostrophe.", bTest);
// Customized string handling policy.
ScSetStringParam aParam;
aParam.mbDetectNumberFormat = false;
aParam.mbSetTextCellFormat = true;
aParam.mbHandleApostrophe = false;
m_pDoc->SetString(0, 0, 0, "000123", &aParam);
m_pDoc->GetString(0, 0, 0, test);
CPPUNIT_ASSERT_MESSAGE("Text content should have been treated as string, not number.", test == "000123");
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