diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-02-23 11:08:59 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-02-23 14:12:37 +0100 |
commit | 50df3343adf8e0764934f09438d8ccfaa6dc33e9 (patch) | |
tree | 26484a8d53bf0acce294aa22c204ac570d2d6560 /test | |
parent | 48ef7e34503dc185df5f5ca3d7651ee196b7616d (diff) |
Style fixes and copyright assignment for unit-test.
Diffstat (limited to 'test')
-rw-r--r-- | test/eventsdstest.cc | 12 |
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); } |