Add a correctness check to the helper function
I was writing a new test, and messed up the times vs. timezones of my start/end times. So, let's check them so it is easier to write new tests. Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/550>
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
6029b5f061
commit
cf43f6e475
@@ -920,6 +920,8 @@ values_with_date_times(const char *start, const char *end)
|
||||
g_autoptr (GDateTime) end_date = g_date_time_new_from_iso8601 (end, NULL);
|
||||
g_assert (end_date != NULL);
|
||||
|
||||
g_assert (g_date_time_compare (start_date, end_date) == -1);
|
||||
|
||||
GcalScheduleValues *values = g_new0 (GcalScheduleValues, 1);
|
||||
|
||||
*values = (GcalScheduleValues) {
|
||||
|
||||
Reference in New Issue
Block a user