Skip to content

Commit

Permalink
kisfile
Browse files Browse the repository at this point in the history
  • Loading branch information
martinzink committed Feb 20, 2025
1 parent 855bef5 commit 80ac771
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ TEST_CASE("ParseAddress") {
auto expected = ReadRegisters<uint16_t>(RegisterType::holding, transaction_id, unit_id, 20, 10);

const auto horse = ReadModbusFunction::parse(transaction_id, unit_id, "holding-register:20:UINT[10]");
CHECK(horse);
REQUIRE(horse);
const auto& h = *horse;
const auto horse_id = typeid(h).name();
const auto expected_id = typeid(expected).name();
CHECK(horse_id == expected_id);
const auto cast_horse = dynamic_cast<const ReadRegisters<uint16_t>*>(&*horse);
REQUIRE(cast_horse);

Expand Down

0 comments on commit 80ac771

Please sign in to comment.