uvw/test/uvw/event.cpp
2016-10-24 18:13:53 +02:00

16 lines
349 B
C++

#include <gtest/gtest.h>
#include <uvw/event.hpp>
struct EventA: uvw::Event<EventA> {};
struct EventB: uvw::Event<EventB> {};
TEST(Event, Uniqueness) {
ASSERT_EQ(EventA::type(), EventA::type());
ASSERT_EQ(EventA::type(), EventA{}.type());
ASSERT_NE(EventA::type(), EventB::type());
ASSERT_NE(EventA::type(), EventB{}.type());
}