Fix Styles::readNumFmts() bug

This commit is contained in:
Debao Zhang
2013-10-25 16:32:43 +08:00
parent 8faebaaa91
commit 84ca047e7f
3 changed files with 14 additions and 6 deletions
+5
View File
@@ -142,6 +142,11 @@ void StylesTest::testReadNumFmts()
styles.readNumFmts(reader);
QCOMPARE(styles.m_customNumFmts.size(), 2);
QCOMPARE(styles.m_customNumFmts[0]->formatIndex, 164);
QCOMPARE(styles.m_customNumFmts[0]->formatString, QStringLiteral("yyyy-mm-ddThh:mm:ss"));
QCOMPARE(styles.m_customNumFmts[1]->formatIndex, 165);
QCOMPARE(styles.m_customNumFmts[1]->formatString, QStringLiteral("dd/mm/yyyy"));
}
QTEST_APPLESS_MAIN(StylesTest)