aboutsummaryrefslogtreecommitdiff
path: root/tests/test-menu-appointments.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-menu-appointments.cpp')
-rw-r--r--tests/test-menu-appointments.cpp67
1 files changed, 1 insertions, 66 deletions
diff --git a/tests/test-menu-appointments.cpp b/tests/test-menu-appointments.cpp
index 4d15b9f..ed02395 100644
--- a/tests/test-menu-appointments.cpp
+++ b/tests/test-menu-appointments.cpp
@@ -20,11 +20,10 @@
*/
#include "glib-fixture.h"
-#include "print-to.h"
#include <datetime/appointment.h>
#include <datetime/menu.h>
-
+#include <algorithm>
#include <vector>
using MenuAppointmentFixture = GlibFixture;
@@ -117,70 +116,6 @@ TEST_F(MenuAppointmentFixture, DisplayEvents)
DateTime::Local(2017,1,1,0,0,0)
);
- const auto nye_party = create_appointment(
- Appointment::EVENT,
- "uid-new-years-party",
- "New Year Party at Ted's",
- DateTime::Local(2016,12,31,19,0,0),
- DateTime::Local(2017, 1, 1, 2,0,0)
- );
-
- const auto new_years_day = create_appointment(
- Appointment::EVENT,
- "uid-new-years-day",
- "New Years' Day",
- DateTime::Local(2017,1,1,0,0,0),
- DateTime::Local(2017,1,2,0,0,0)
- );
-
- const auto weekday_wakeup_alarm = create_appointment(
- Appointment::ALARM,
- "wakeup-alarm",
- "Wake Up",
- DateTime::Local(2017,1,3,6,0,0),
- DateTime::Local(2017,1,3,6,0,0)
- );
-
- const auto dentist_appointment = create_appointment(
- Appointment::EVENT,
- "dentist",
- "Dentist",
- DateTime::Local(2017,1,5,14,0,0),
- DateTime::Local(2017,1,5,15,0,0)
- );
-
- const auto marcus_birthday = create_appointment(
- Appointment::EVENT,
- "uid-mlk",
- "Marcus' Birthday",
- DateTime::Local(2017,1,8,0,0,0),
- DateTime::Local(2017,1,9,0,0,0)
- );
-
- const auto mlk_day = create_appointment(
- Appointment::EVENT,
- "uid-mlk",
- "Martin Luther King Day",
- DateTime::Local(2017,1,16,0,0,0),
- DateTime::Local(2017,1,17,0,0,0)
- );
-
- const auto rodney_party = create_appointment(
- Appointment::EVENT,
- "uid-rodney",
- "Rodney's Party",
- DateTime::Local(2017,1,30,19,0,0),
- DateTime::Local(2017,1,30,23,0,0)
- );
-
- const auto pub_with_pawel = create_appointment(
- Appointment::ALARM,
- "uid-pawel",
- "Meet Pawel at the Pub",
- DateTime::Local(2017,2,4,19,0,0),
- DateTime::Local(2017,2,4,19,0,0)
- );
-
const struct
{
const char* const description;