aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2015-05-20 17:04:09 -0500
committerCharles Kerr <charles.kerr@canonical.com>2015-05-20 17:04:09 -0500
commit45122eb294b281fb939aea315fa35ddb96cf44d1 (patch)
treeb4e54f24769215c191418c87b888aa7906cfbdeb /tests
parentc91b1cc89bd83608e225d67983c69a9e08f93873 (diff)
downloadayatana-indicator-datetime-45122eb294b281fb939aea315fa35ddb96cf44d1.tar.gz
ayatana-indicator-datetime-45122eb294b281fb939aea315fa35ddb96cf44d1.tar.bz2
ayatana-indicator-datetime-45122eb294b281fb939aea315fa35ddb96cf44d1.zip
fixed first test passing
Diffstat (limited to 'tests')
-rw-r--r--tests/test-eds-tasks.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test-eds-tasks.cpp b/tests/test-eds-tasks.cpp
index 2db1708..526dcc6 100644
--- a/tests/test-eds-tasks.cpp
+++ b/tests/test-eds-tasks.cpp
@@ -85,15 +85,15 @@ TEST_F(VAlarmFixture, MultipleAppointments)
// compare it to what we actually loaded...
const auto appts = planner->appointments().get();
- ASSERT_GT(appts.size(), 0);
- EXPECT_EQ(1, appts.size());
- const auto& appt = appts[0];
- EXPECT_EQ(expected_appt.uid, appt.uid);
- EXPECT_EQ(expected_appt.color, appt.color);
- EXPECT_EQ(expected_appt.summary, appt.summary);
- EXPECT_EQ(expected_alarms.size(), appt.alarms.size());
- for (size_t i=0, n=expected_alarms.size(); i<n; i++)
- EXPECT_EQ(expected_alarms[i], appt.alarms[i]);
+ EXPECT_EQ(expected_alarms.size(), appts.size());
+ for (size_t i=0, n=expected_alarms.size(); i<n; i++) {
+ const auto& appt = appts[i];
+ EXPECT_EQ(expected_appt.uid, appt.uid);
+ EXPECT_EQ(expected_appt.color, appt.color);
+ EXPECT_EQ(expected_appt.summary, appt.summary);
+ EXPECT_EQ(1, appt.alarms.size());
+ EXPECT_EQ(expected_alarms[i], appt.alarms[0]);
+ }
// cleanup
g_time_zone_unref(gtz);