Skip to content

Commit

Permalink
Fixing tests compilation with C++11.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Jan 18, 2025
1 parent 0c4aaf7 commit a7a8a49
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/commsdsl2comms/test/test1/test1Test.th
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ void TestSuite::test3()
TS_ASSERT_EQUALS(msg->getId(), 1U);

auto& payload = std::get<1>(frameFields).value();
TS_ASSERT(std::equal(payload.begin(), payload.end(), std::begin(Buf) + 1, std::end(Buf)));
TS_ASSERT_EQUALS(payload.size(), BufSize - 1U);
TS_ASSERT(std::equal(payload.begin(), payload.end(), std::begin(Buf) + 1));
}

void TestSuite::test4()
Expand All @@ -121,6 +122,7 @@ void TestSuite::test4()
TS_ASSERT_EQUALS(msg->getId(), 1U);

auto& payload = std::get<1>(frameFields).value();
TS_ASSERT(std::equal(payload.begin(), payload.end(), std::begin(Buf) + 1, std::end(Buf)));
TS_ASSERT_EQUALS(payload.size(), BufSize - 1U);
TS_ASSERT(std::equal(payload.begin(), payload.end(), std::begin(Buf) + 1));
}

0 comments on commit a7a8a49

Please sign in to comment.