tests/bindingstest.cpp tests/bindingstest.h
Christian Mollekopf
mollekopf at kolabsys.com
Thu Jun 28 18:15:25 CEST 2012
tests/bindingstest.cpp | 12 ++++++++++++
tests/bindingstest.h | 1 +
2 files changed, 13 insertions(+)
New commits:
commit 51607f2a7beacf7c27c511554eea24b5967cdaea
Author: Christian Mollekopf <mollekopf at kolabsys.com>
Date: Thu Jun 28 18:12:32 2012 +0200
Ensure date-only due-dates are preserved as date-only-dates.
diff --git a/tests/bindingstest.cpp b/tests/bindingstest.cpp
index bfdf883..7459a7d 100644
--- a/tests/bindingstest.cpp
+++ b/tests/bindingstest.cpp
@@ -330,6 +330,18 @@ void BindingsTest::todoCompletness()
QCOMPARE(ev.percentComplete(), e.percentComplete());
}
+void BindingsTest::dueDateDateOnly()
+{
+ Kolab::Todo ev;
+ ev.setDue(Kolab::cDateTime(2006,1,8));
+ std::string result = Kolab::writeTodo(ev);
+ QVERIFY(Kolab::error() == Kolab::NoError);
+// std::cout << result << endl;
+ Kolab::Todo e = Kolab::readTodo(result, false);
+ QVERIFY(Kolab::error() == Kolab::NoError);
+ QCOMPARE(ev.due(), e.due());
+}
+
void BindingsTest::journalCompletness()
{
Kolab::Journal ev;
diff --git a/tests/bindingstest.h b/tests/bindingstest.h
index 6bbeb78..f16c3e6 100644
--- a/tests/bindingstest.h
+++ b/tests/bindingstest.h
@@ -28,6 +28,7 @@ class BindingsTest : public QObject
void eventCompletness();
void eventDuration();
void todoCompletness();
+ void dueDateDateOnly();
void journalCompletness();
void freebusyCompletness();
More information about the commits
mailing list