summaryrefslogtreecommitdiff
path: root/test/eventsdstest.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2020-02-18 18:02:29 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2020-02-23 13:46:28 +0100
commit63e5ab8fdbfac2553c79a4c3dc03039875d581c8 (patch)
treeb6053510e8da96ff4dee42771cff47dbdb0db45f /test/eventsdstest.cc
parent2261c525f34f6df8ded520c2fa6278c9799d6997 (diff)
Scratch the pointer returning get and instead add getType.
Diffstat (limited to 'test/eventsdstest.cc')
-rw-r--r--test/eventsdstest.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/eventsdstest.cc b/test/eventsdstest.cc
index b9c2f0a..a293610 100644
--- a/test/eventsdstest.cc
+++ b/test/eventsdstest.cc
@@ -77,12 +77,10 @@ public:
}
DGUNIT_ASSERT(group_concat == "abcd");
- // get
+ // get and getType
for (auto const& sample_event: events_ds.iterateOver<SampleEvent>(13)) {
DGUNIT_ASSERT(events_ds.get<SampleEvent>(sample_event.id).channel == 13);
- Event* event_ptr = events_ds.get(sample_event.id);
- DGUNIT_ASSERT(event_ptr->type == Event::Type::SampleEvent);
- DGUNIT_ASSERT(static_cast<SampleEvent*>(event_ptr)->channel == 13);
+ DGUNIT_ASSERT(events_ds.getType(sample_event.id) == Event::Type::SampleEvent);
}
// remove