aboutsummaryrefslogtreecommitdiff
path: root/tests/print-to.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/print-to.h')
-rw-r--r--tests/print-to.h10
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