diff options
author | André Nusser <andre.nusser@googlemail.com> | 2020-02-18 18:02:29 +0100 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2020-02-23 13:46:28 +0100 |
commit | 63e5ab8fdbfac2553c79a4c3dc03039875d581c8 (patch) | |
tree | b6053510e8da96ff4dee42771cff47dbdb0db45f /test/eventsdstest.cc | |
parent | 2261c525f34f6df8ded520c2fa6278c9799d6997 (diff) |
Scratch the pointer returning get and instead add getType.
Diffstat (limited to 'test/eventsdstest.cc')
-rw-r--r-- | test/eventsdstest.cc | 6 |
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 |