[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra] libs/odf/tests: Fix TestNumberStyle::testTime for full number of days
From: Friedrich W. H. Kossebau <kossebau () kde ! org>
Date: 2015-10-31 17:18:50
Message-ID: E1ZsZnm-0007R0-EV () scm ! kde ! org
[Download RAW message or body]
Git commit 718083920f17bf8cac6a240fced668f33bdb35c0 by Friedrich W. H. Kossebau.
Committed on 31/10/2015 at 17:17.
Pushed by kossebau into branch 'master'.
Fix TestNumberStyle::testTime for full number of days
A full number of days should end up at midnight again,
and QTime in Qt5 agrees to that. No idea yet why that worked in Qt4 times.
M +1 -1 libs/odf/tests/TestNumberStyle.cpp
http://commits.kde.org/calligra/718083920f17bf8cac6a240fced668f33bdb35c0
diff --git a/libs/odf/tests/TestNumberStyle.cpp b/libs/odf/tests/TestNumberStyle.cpp
index dcf1d5b..d888965 100644
--- a/libs/odf/tests/TestNumberStyle.cpp
+++ b/libs/odf/tests/TestNumberStyle.cpp
@@ -81,7 +81,7 @@ void TestNumberStyle::testTime()
f.formatStr = "hh:mm:ss";
QCOMPARE(KoOdfNumberStyles::format("0.524259259259", f), QString("12:34:56"));
QCOMPARE(KoOdfNumberStyles::format("test", f), QString("test"));
- QCOMPARE(KoOdfNumberStyles::format("123", f), QString("13:54:25"));
+ QCOMPARE(KoOdfNumberStyles::format("123", f), QString("00:00:00"));
QCOMPARE(KoOdfNumberStyles::format("1.23", f), QString("05:31:12"));
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic