diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2016-03-18 10:17:55 -0500 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-07-05 00:44:01 +0200 |
commit | e47d49aca4da2d97c06acccc967abdf5698b044d (patch) | |
tree | d3edead4a7396f959706242fed978f6bc0a9c238 /tests/print-to.h | |
parent | 179bbad3a5c1c12abb36dc1c3702cb50b6be8f2e (diff) | |
download | ayatana-indicator-datetime-e47d49aca4da2d97c06acccc967abdf5698b044d.tar.gz ayatana-indicator-datetime-e47d49aca4da2d97c06acccc967abdf5698b044d.tar.bz2 ayatana-indicator-datetime-e47d49aca4da2d97c06acccc967abdf5698b044d.zip |
get event selection up-to-date with the spec, including showing in-progress events. add unit tests to cover event priority and display order.
Diffstat (limited to 'tests/print-to.h')
-rw-r--r-- | tests/print-to.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/print-to.h b/tests/print-to.h index 19367ac..652da52 100644 --- a/tests/print-to.h +++ b/tests/print-to.h @@ -21,6 +21,7 @@ #define INDICATOR_DATETIME_TESTS_PRINT_TO #include <algorithm> +#include <vector> #include <datetime/appointment.h> @@ -71,6 +72,15 @@ PrintTo(const Appointment& appointment, std::ostream* os) *os << '}'; } +void +PrintTo(const std::vector<Appointment>& appointments, std::ostream* os) +{ + *os << '{'; + for (const auto& appointment : appointments) + PrintTo(appointment, os); + *os << '}'; +} + } // namespace datetime } // namespace indicator } // namespace ayatana |