Skip to content

Commit

Permalink
Check for MessageType::None in randomized tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Nov 20, 2023
1 parent 7cad6d4 commit 88e8454
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_randomized.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ TEST_CASE("test TestMessages messages with randomized data")
// TODO: meta comparison functions?

const auto mt1 = message->type();
CHECK_NE(mt1, 0);
CHECK_NE(m2->type(), 0);
const auto mt1_str = ::testmessages::umb::meta::to_string(mt1);
const auto mt2_str = ::testmessages::umb::meta::to_string(m2->type());
CHECK_EQ(mt1, static_cast<uint16_t>(mt));
Expand Down

0 comments on commit 88e8454

Please sign in to comment.