summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-02-23 11:08:59 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2020-02-23 14:12:37 +0100
commit50df3343adf8e0764934f09438d8ccfaa6dc33e9 (patch)
tree26484a8d53bf0acce294aa22c204ac570d2d6560
parent48ef7e34503dc185df5f5ca3d7651ee196b7616d (diff)
Style fixes and copyright assignment for unit-test.
-rw-r--r--test/eventsdstest.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/eventsdstest.cc b/test/eventsdstest.cc
index a293610..db6a662 100644
--- a/test/eventsdstest.cc
+++ b/test/eventsdstest.cc
@@ -3,8 +3,8 @@
* eventsdstest.cc
*
* Sun Feb 16 21:38:59 CET 2020
- * Copyright 2020 Bent Bisballe Nyeng
- * deva@aasimon.org
+ * Copyright 2020 André Nusser
+ * andre.nusser@googlemail.com
****************************************************************************/
/*
@@ -52,7 +52,7 @@ public:
DGUNIT_ASSERT(events_ds.getSampleEventGroupIDsOf(42).size() == 1);
auto group_id = events_ds.getSampleEventGroupIDsOf(42).back();
- auto const& event_ids = events_ds.getEventIDsOf(group_id);
+ const auto& event_ids = events_ds.getEventIDsOf(group_id);
DGUNIT_ASSERT(event_ids.size() == 3);
// group 2
@@ -72,13 +72,15 @@ public:
// iterate over
std::string group_concat = "";
- for (auto const& sample_event: events_ds.iterateOver<SampleEvent>(13)) {
+ for (const auto& sample_event: events_ds.iterateOver<SampleEvent>(13))
+ {
group_concat.append(sample_event.group);
}
DGUNIT_ASSERT(group_concat == "abcd");
// get and getType
- for (auto const& sample_event: events_ds.iterateOver<SampleEvent>(13)) {
+ for (const auto& sample_event: events_ds.iterateOver<SampleEvent>(13))
+ {
DGUNIT_ASSERT(events_ds.get<SampleEvent>(sample_event.id).channel == 13);
DGUNIT_ASSERT(events_ds.getType(sample_event.id) == Event::Type::SampleEvent);
}