Skip to content

Commit

Permalink
C++11 & 14 unit test compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wellbelove committed Aug 31, 2024
1 parent 4601257 commit 0d058f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ SUITE(test_message)
struct MessageBase : public etl::imessage {};
struct Message2 : public etl::message<2, MessageBase> {};

CHECK_TRUE((std::is_same_v<etl::imessage, Message1::base_type>));
CHECK_TRUE((std::is_same_v<MessageBase, Message2::base_type>));
CHECK_TRUE((std::is_same<etl::imessage, Message1::base_type>::value));
CHECK_TRUE((std::is_same<MessageBase, Message2::base_type>::value));

CHECK_FALSE((std::is_same_v<MessageBase, Message1::base_type>));
CHECK_FALSE((std::is_same_v<etl::imessage, Message2::base_type>));
CHECK_FALSE((std::is_same<MessageBase, Message1::base_type>::value));
CHECK_FALSE((std::is_same<etl::imessage, Message2::base_type>::value));
}
};

0 comments on commit 0d058f7

Please sign in to comment.