From 3f4d409f21bbb1f79f149a5ee66dcddaa505ddb1 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 9 Mar 2014 21:08:47 -0500 Subject: decouple the planner's states; need three separate sets: upcoming-now (for alarms in the current time), upcoming-calendar (to show events coming from the selected calendar date), and calendar-month (all the appointments in the month displayed in the menu). --- tests/test-planner.cpp | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'tests/test-planner.cpp') diff --git a/tests/test-planner.cpp b/tests/test-planner.cpp index 6f602f4..4694cf5 100644 --- a/tests/test-planner.cpp +++ b/tests/test-planner.cpp @@ -37,27 +37,6 @@ using namespace unity::indicator::datetime; typedef GlibFixture PlannerFixture; -TEST_F(PlannerFixture, EDS) -{ - auto tmp = g_date_time_new_now_local(); - const auto now = DateTime(tmp); - g_date_time_unref(tmp); - - std::shared_ptr clock(new MockClock(now)); - std::shared_ptr tz(new MockTimezone); - PlannerEds planner(clock, tz); - wait_msec(100); - - planner.time.set(now); - wait_msec(2500); - - std::vector this_month = planner.this_month.get(); - std::cerr << this_month.size() << " appointments this month" << std::endl; - for(const auto& a : this_month) - std::cerr << a.summary << std::endl; -} - - TEST_F(PlannerFixture, HelloWorld) { auto halloween = g_date_time_new_local(2020, 10, 31, 18, 30, 59); -- cgit v1.2.3