diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2015-05-20 08:07:15 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2015-05-20 08:07:15 -0500 |
commit | c91b1cc89bd83608e225d67983c69a9e08f93873 (patch) | |
tree | 5863a513a091098759cae052ad6dd3e1acdb5613 /tests/test-eds-tasks.cpp | |
parent | 03ad335029ca9c970ac3b7fbeab3f657e4718a71 (diff) | |
download | ayatana-indicator-datetime-c91b1cc89bd83608e225d67983c69a9e08f93873.tar.gz ayatana-indicator-datetime-c91b1cc89bd83608e225d67983c69a9e08f93873.tar.bz2 ayatana-indicator-datetime-c91b1cc89bd83608e225d67983c69a9e08f93873.zip |
first eds test passing
Diffstat (limited to 'tests/test-eds-tasks.cpp')
-rw-r--r-- | tests/test-eds-tasks.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/tests/test-eds-tasks.cpp b/tests/test-eds-tasks.cpp index 6dbb49f..2db1708 100644 --- a/tests/test-eds-tasks.cpp +++ b/tests/test-eds-tasks.cpp @@ -85,16 +85,15 @@ TEST_F(VAlarmFixture, MultipleAppointments) // compare it to what we actually loaded... const auto appts = planner->appointments().get(); - 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]); - } - + 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]); // cleanup g_time_zone_unref(gtz); |