From 50df3343adf8e0764934f09438d8ccfaa6dc33e9 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 23 Feb 2020 11:08:59 +0100 Subject: Style fixes and copyright assignment for unit-test. --- test/eventsdstest.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'test') 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(13)) { + for (const auto& sample_event: events_ds.iterateOver(13)) + { group_concat.append(sample_event.group); } DGUNIT_ASSERT(group_concat == "abcd"); // get and getType - for (auto const& sample_event: events_ds.iterateOver(13)) { + for (const auto& sample_event: events_ds.iterateOver(13)) + { DGUNIT_ASSERT(events_ds.get(sample_event.id).channel == 13); DGUNIT_ASSERT(events_ds.getType(sample_event.id) == Event::Type::SampleEvent); } -- cgit v1.2.3