Skip to content

Commit

Permalink
Add message type checks to test_randomized
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Nov 15, 2023
1 parent 1032a79 commit 520ba3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_randomized.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,12 @@ TEST_CASE("test TestMessages messages with randomized data")
CHECK_MESSAGE(bytes == bytes2, byte_cmp_msg(bytes, bytes2));
// TODO: meta comparison functions?

const auto mt1 = message->type();
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));
CHECK_EQ(mt1_str, mt2_str);

std::cout << std::endl;
}
});
Expand Down

0 comments on commit 520ba3b

Please sign in to comment.