aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/test-recur.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@src.gnome.org>2000-11-27 07:21:09 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-11-27 07:21:09 +0800
commit30bb3527694d38c84f6f3c3efc1cdca5777da855 (patch)
tree1553e310c86337200773b9a8593dafe2c847a443 /calendar/cal-util/test-recur.c
parent05e024b46af1f4552a8ee5ddfe126ce968005808 (diff)
downloadgsoc2013-evolution-30bb3527694d38c84f6f3c3efc1cdca5777da855.tar
gsoc2013-evolution-30bb3527694d38c84f6f3c3efc1cdca5777da855.tar.gz
gsoc2013-evolution-30bb3527694d38c84f6f3c3efc1cdca5777da855.tar.bz2
gsoc2013-evolution-30bb3527694d38c84f6f3c3efc1cdca5777da855.tar.lz
gsoc2013-evolution-30bb3527694d38c84f6f3c3efc1cdca5777da855.tar.xz
gsoc2013-evolution-30bb3527694d38c84f6f3c3efc1cdca5777da855.tar.zst
gsoc2013-evolution-30bb3527694d38c84f6f3c3efc1cdca5777da855.zip
use a gint for day rather than a guint since we now support -ve days. Also
* cal-util/cal-recur.c (cal_obj_time_add_days): use a gint for day rather than a guint since we now support -ve days. Also fixed bug with weekly recurrences. svn path=/trunk/; revision=6674
Diffstat (limited to 'calendar/cal-util/test-recur.c')
-rw-r--r--calendar/cal-util/test-recur.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/calendar/cal-util/test-recur.c b/calendar/cal-util/test-recur.c
index 2c94b28921..2f1320ca86 100644
--- a/calendar/cal-util/test-recur.c
+++ b/calendar/cal-util/test-recur.c
@@ -24,7 +24,12 @@
/*
* This tests the recurrence rule expansion functions.
- * FIXME: Needs to be updated to just use the public interface.
+ *
+ * NOTE: currently it starts from the event start date and continues
+ * until all recurrence rules/dates end or we reach MAX_OCCURRENCES
+ * occurrences. So it does not test generating occurrences for a specific
+ * interval. A nice addition might be to do this automatically and compare
+ * the results from the complete set to ensure they match.
*/
#include <config.h>
@@ -144,8 +149,13 @@ generate_occurrences (icalcomponent *icalcomp)
g_print ("%s\n\n", icalcomponent_as_ical_string (tmp_icalcomp));
occurrences = 0;
+#if 0
+ cal_recur_generate_instances (comp, 972950400, 976492800,
+ occurrence_cb, &occurrences);
+#else
cal_recur_generate_instances (comp, -1, -1,
occurrence_cb, &occurrences);
+#endif
g_print ("%s\n\n", icalcomponent_as_ical_string (tmp_icalcomp));
}